Constructs a new instance of the class.
The secret used to sign the tokens.
Optional
defaultExpiration: stringThe default expiration time for the tokens.
None
Creates a JSON Web Token (JWT) using the provided data and options.
The data to be included in the token payload.
Optional
expiration: stringThe expiration time for the token. If not provided, the default expiration time will be used.
Optional
overrideToken: stringAn optional token secret to override the default token secret.
Optional
opts: anyAdditional options to be passed to the jwt.sign() function.
Validates a JSON Web Token (JWT) and returns the validation response.
The JWT to validate.
Represents a JSON Web Token (JWT) utility class.