Verifies the given token and returns the decoded payload
Summary
function verify(token: string, secretOrPublicKey: jwt.Secret, options?: (
jwt.VerifyOptions & { complete?: false | undefined;
}) | undefined): string
| jwt.JwtPayload (+6 overloads)
Synchronously verify given token using a secret or a public key to get a decoded token token - JWT string to verify secretOrPublicKey - Either the secret for HMAC algorithms, or the PEM encoded public key for RSA and ECDSA. [options] - Options for the verification returns - The decoded token.
Name
verifyToken
Version
1.0.0
Description
Verifies the given token and returns the decoded payload
Summary
function verify(token: string, secretOrPublicKey: jwt.Secret, options?: ( jwt.VerifyOptions & { complete?: false | undefined; }) | undefined): string | jwt.JwtPayload (+6 overloads) Synchronously verify given token using a secret or a public key to get a decoded token token - JWT string to verify secretOrPublicKey - Either the secret for HMAC algorithms, or the PEM encoded public key for RSA and ECDSA. [options] - Options for the verification returns - The decoded token.