Open ksXV opened 1 year ago
Same here, the cookie expires instantly.
Fixed by passing the option gf.CompleteUserAuthOptions{ShouldLogout: false}
:
app.Get("/auth/:provider/callback", func(ctx *fiber.Ctx) error {
user, err := gf.CompleteUserAuth(ctx, gf.CompleteUserAuthOptions{ShouldLogout: false})
if err != nil {
return err
}
ctx.JSON(user)
return nil
})
I haven't modified
goth_fiber.SessionStore
yet when I hit the callback the cookie that gets sent from the server is already expired. I tried setting the session like this https://github.com/markbates/goth#security-notes but still to no result. Does anybody have a clue why is this happening ?