Const
Jwt validate Promise wrapper for jwt.verify function
JsonWebTokenError if token is invalid
JsonWebTokenError
TokenExpiredError if token is expired
TokenExpiredError
NotBeforeError if current time is before the nbf claim
NotBeforeError
JWT token string to verify
Secret or public key for verifying the token
Optional jwt verify options
Promise that resolves with the decoded token payload if verification is successful, or rejects with an error if verification fails
const decoded = await jwtVerifyPromise(token, secretOrPublicKey, options);console.log(decoded); // decoded token payload Copy
const decoded = await jwtVerifyPromise(token, secretOrPublicKey, options);console.log(decoded); // decoded token payload
Jwt validate Promise wrapper for jwt.verify function