Global

Methods

decode(token)

Decodes a string token into the 3 parts, throws if the format is invalid

Source:
Parameters:
Name Type Description
token

validate(token, options)

Validator for ID Tokens following OIDC spec.

Source:
Parameters:
Name Type Description
token

the string token to verify

options

the options required to run this verification

Returns:

A promise containing the decoded token payload, or throws an exception if validation failed