Replies: 2 comments
-
Hey there, did you find a solution? |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I used to rely on
getToken
to check if a user is logged in: If they are not, then redirect to login pagewelcome/auth
:I would like to protect all pages except the login page
welcome/auth
.But now I found, even after a user is logged in, the
session
here is stillnull
. I have readnext.js
andnext-auth
release notes, I might be missing something. Could someone remind me what is wrong?Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions