Using next-auth session token in node and express #12633
Unanswered
aziz-codes
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 have my frontend running on next js 14 and i am using next-auth for user authentication on FE, since my backend server is in a separate folder that uses express and node js, so while requesting from client to server Ia m also sending the next auth session to the backend,
now I am receiving the token and extracting 'next-auth.session-token' from it, and then while verifying it using jwt in node I am getting error that 'jwt is malformed'
is there any way to fix it?
thanks.
Beta Was this translation helpful? Give feedback.
All reactions