setAuthCookies doesn't set cookies after login/logout/login and doesn't throw errors when using withAuthUserTokenSSR #538
Unanswered
Felixaverlant
asked this question in
Q&A
Replies: 1 comment
-
The behavior you're describing makes sense to me: the server needs to send a response, otherwise the request will hang. Unless I'm misunderstanding, this doesn't seem like a problem or anything necessarily tied to |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm currently using
next-firebase-auth ^1.0.0-canary.15
and I have a problem setting and unsetting the cookies ( I think).Here's the steps :
AuthUser.signOut
), get redirect to login pageNotes
await setAuthCookies(req,res)
return res.status(200).json({ status: true })
in both /api/login and /api/logout because otherwise the pending http request happens even when I login for the first time after launch dev server.withAuthUserTokenSSR
but works with onlywithAuthUser
Here's my current setup :
login.ts
logout.ts
Beta Was this translation helpful? Give feedback.
All reactions