From d6a117a8fe5db356729607b99d2f8776f7029a85 Mon Sep 17 00:00:00 2001 From: shreeharsha-factly <55734346+shreeharsha-factly@users.noreply.github.com> Date: Thu, 23 Jan 2025 16:50:55 +0530 Subject: [PATCH] remove hardcoded url --- server/service/route.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/service/route.go b/server/service/route.go index 945e2d7f..225696f9 100644 --- a/server/service/route.go +++ b/server/service/route.go @@ -205,6 +205,6 @@ func handleAuthorizationResponse(w http.ResponseWriter, r *http.Request, resp *h return } - redirectURL := fmt.Sprintf("http://localhost:3000/auth/login?authRequest=%s", authRequestID) + redirectURL := fmt.Sprintf(viper.GetString("APP_LOGIN_URL")+"?authRequest=%s", authRequestID) http.Redirect(w, r, redirectURL, http.StatusSeeOther) }