Skip to content

JWT Signature Verification Failed #1496

Discussion options

You must be logged in to vote

jwt.getToken() can decode the token for you. If you specified a signingKey you probably want to also add an encryptionKey and you should also pass the keys or any other options that you have in your jwt settings.

const token = await jwt.getToken({ req, secret: process.env.JWT_TOKEN, encryptionKey: 'key', signingKey: 'key' })

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@iaincollins
Comment options

@jackmerrill
Comment options

@Fronix
Comment options

Answer selected by balazsorban44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
4 participants