StaticsignThis function signs a token
The data to sign
Optionalexp: stringThe expiration date of the token
The signed token
StaticsignThis function signs the token with a custom secret
The data to sign
The secret to sign the token with
Optionalexp: stringThe expiration date of the token
The signed token
StaticverifyThis function verifies a token
The token to verify
The path/procedure of the request to verify the token for
The decoded token
StaticverifyThis function verifies a token with custom jwt secret
The token to verify
The decoded token
AuthService class