add state validation to oauth flow #8

Merged
grng merged 4 commits from state into dev 2025-07-31 10:30:40 +00:00
Showing only changes of commit 96320c3cc4 - Show all commits

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) {