Why is getSession not working in getServerSideProps? #5448
Unanswered
NabeelAhmed23
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.
-
I was using getSession to redirect if unauthenticated in my previous project couple of months ago. But today I used it in another project but it just keeps returning unauthenticated. useSession shows that I am authenticated but getSession shows that i am unauthenticated.
Beta Was this translation helpful? Give feedback.
All reactions