Session not updating on ClientSide #4123
Unanswered
lucas-borges-belo
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Question 💬
Hi, everyone,
I'm using Next Auth (v3) with Amazon Cognito. When I fetch the session through the server side, I'm able to get the session, such as:
However, when retrieving the session from client side, I'm not able to get it, as:
const [session, loading] = useSession()
However, when I manually hit api/auth/session, my client side does work. Why is this happening ?
How to reproduce ☕️
[...nextauth].js
_app.js
login.js
protected.js (not working)
protected.js ( working )
Contributing 🙌🏽
Yes, I am willing to help answer this question in a PR
Beta Was this translation helpful? Give feedback.
All reactions