Replies: 1 comment
-
if you set a manual jwt signing key, you can use jose in e.g. passport to verify the jwt from Nextauth e.g. in Nest
|
Beta Was this translation helpful? Give feedback.
0 replies
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 a next js client that uses next auth, and a custom decoupled node REST API. I am not using the built-in next API. I am only using two next-auth providers, Google and Twitter, and have no custom email sign-in. I need a way to authenticate routes on my backend using a jwt.
This is how my next auth file looks right now:
Maybe in a particular callback, I should retrieve a token from my API? Could someone tell me what to write on my backend that can give me back this jwt and I can use it with every subsequent request. Another thing I considered is generating the jwt from a callback in my next auth file directly and not making requests to my API for a token. Could someone tell me whats the right approach here?
Beta Was this translation helpful? Give feedback.
All reactions