Skip to content

Commit

Permalink
remove hardcoded url
Browse files Browse the repository at this point in the history
  • Loading branch information
shreeharsha-factly authored Jan 23, 2025
1 parent 7f214ca commit d6a117a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/service/route.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit d6a117a

Please sign in to comment.