clean up callback to dashboard url 😭

This commit is contained in:
grngxd 2025-07-30 11:17:23 +01:00
parent 6a08afbf52
commit 96320c3cc4

View file

@ -100,7 +100,7 @@ func RegisterAuthRoutes(cfg *types.StereoConfig, api *gin.RouterGroup) {
})
*/
c.SetCookie("jwt", jwt, int(t.ExpiresIn), "", cfg.Domain, true, true)
c.Redirect(http.StatusTemporaryRedirect, cfg.FrontendUri+"/dashboard?jwt_set=true")
c.Redirect(http.StatusTemporaryRedirect, cfg.FrontendUri+"/dashboard")
})
api.GET("/auth/me", session.SessionMiddleware(cfg.JWTSecret), func(c *gin.Context) {