Checking if user is authenticated on server side #2183
Unanswered
simplenotezy
asked this question in
Help
Replies: 0 comments
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.
-
Question 💬
I'd like to check if user is authenticated on the server side, so I can redirect or just don't perform certain requests.
I have tried debugging with:
But the session appears to always be null, if I console.log the value on the server. Here I would expect it to contain user information, if the user was authenticated. I tried requesting the page, after having been logged in. I notice that on server it will say null, but on the client it will say I am logged in.
Am I missing something here?
Beta Was this translation helpful? Give feedback.
All reactions