How to get logged in user from redirected auth provider route #5517
aquaductape
started this conversation in
General
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.
-
I need help with getting user server side in NextJS, when redirected by auth provider.
When logging in via Google provider, it redirects to dashboard page. The dashboard page is a protected route, rather than checking client side if user is logged in, I want to check server side. I know you have to set cookie but those solutions only work after logging in client side, I want to set cookie before it redirects to dashboard page.
Beta Was this translation helpful? Give feedback.
All reactions