Abstract
Static
signAsynchronously sign the given payload into a JSON Web Token string payload.
Any info that should be put inside the token.
The secret used to encrypt the token.
Optional
options: SignOptionsAdditional options like "expiresIn".
A promise of the jwt.
Static
verifyAsynchronously verify given token using a secret or a public key to get a decoded token.
The token to encode.
The secret to encode the token with.
The encoded token.
Encapsulates functionality of the jsonwebtoken package.