merge
This commit is contained in:
commit
3a6b24cb57
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,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)
|
||||
c.Redirect(http.StatusTemporaryRedirect, cfg.FrontendUri+"?jwt_set=true")
|
||||
})
|
||||
|
||||
api.GET("/auth/me", auth.JwtMiddleware(cfg.JWTSecret), func(c *gin.Context) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue