Decodes a Base64Url encoded JSON Web Token.
the JWT token
the decoded JSON object or null
if it is not a JWT token
Decodes a Base64Url encoded JSON Web Token header.
the JWT token
the decoded JSON header parameters or null
if it is not a JWT token
Validates the given decoded JWT token. Checks if the given claims align
with the validation claims. Furthermore the token's nbf
and exp
claims
are checked if they are defined in the token. A small leeway, usually no
more than a few minutes, may be used to account for clock skew.
the decoded JWT token
the reference claims to check
a small leeway to account for clock skew
an empty promise that resolves if the token is valid
Verifies the signature of the given JSON Web Token.
the JWT token
the key to check the token against
an empty promise that resolves if the token is valid
Generated using TypeDoc
Service class providing functionality to handle and verify JSON Web Tokens.