fix(oidc): incorrect redirect url

This commit is contained in:
yusing 2025-04-26 06:57:02 +08:00
parent 2b9c0f09ee
commit fb2f850311

View file

@ -53,7 +53,7 @@ func RequireAuth(next http.HandlerFunc) http.HandlerFunc {
func AuthCheckHandler(w http.ResponseWriter, r *http.Request) {
if err := defaultAuth.CheckToken(r); err != nil {
http.Redirect(w, r, "/v1/auth/login", http.StatusFound)
defaultAuth.LoginHandler(w, r)
} else {
w.WriteHeader(http.StatusOK)
}