Replies: 1 comment 1 reply
-
There is a And we can use like:
It works in Nextjs side, but in my Nest (express) server I've got I also tried use import from |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a Next.js app that rewrites some API requests back to an Express.js backend. I want to be able to verify & decode the JWT token in the Express.js backend, how do I do this?
There's the
getToken
function which seems to be exactly what I'm looking for:https://authjs.dev/reference/core/jwt#gettoken
https://next-auth.js.org/tutorials/securing-pages-and-api-routes#using-gettoken
But I can't figure out how to use this in an Express.js route. Does anyone have any working examples/snippets?
Beta Was this translation helpful? Give feedback.
All reactions