Get session after sign in #10954
Unanswered
andreynovikov
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
-
I use next-auth v5 with nextjs 14. Currently I have a server action that sings in user and redirects him to user dashboard:
this works fine. But I want to redirect to different locations based on user role. I tried to write:
but session is always null. Is there any way to get it here or have I make redirect client side? Or may be I can somehow return proper redirect url from
singnIn
?Beta Was this translation helpful? Give feedback.
All reactions