How to verify a id_token in next-auth using auth0 provider?
Unanswered
Giant Angora posted this in #help-forum
Giant AngoraOP
hello friends, i created a nextjs app and im using next-auth with auth0 provider, im getting id_token in the session and i want to verify it in an external backend using the same secret, next-auth use a RS256 algorithm , and i need to pass the secret in an enviromental variable, i use nextjs config to read the file.key and set as NEXTAUTH_SECRET
then in the backend im using the same file.key to verify the token and im getting invalid signature
any posible solution? thanks in advance
then in the backend im using the same file.key to verify the token and im getting invalid signature
any posible solution? thanks in advance