How to programmatically create a JWT using next-auth ? #12153
Unanswered
shessafridi
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 am trying to implement auth in a way that works on both my Next JS app and any other public clients.
In Expo I integrated the Google login feature which provides me an access token, The flow I want to implement is:
1 Send access token to server
2 Verify the token
3 If all is well then issue a JWT
I am struggling with the step 3, how can I programmatically generate a JWT with the existing logic I have defined in the auth options for next-auth ?
Beta Was this translation helpful? Give feedback.
All reactions