IdTokenVerifier

IdTokenVerifier

new IdTokenVerifier(parameters)

Creates a new id_token verifier

Source:
Parameters:
Name Type Description
parameters Object
Name Type Attributes Default Description
issuer string

name of the issuer of the token that should match the iss claim in the id_token

audience string

identifies the recipients that the JWT is intended for and should match the aud claim

jwksCache Object <optional>

cache for JSON Web Token Keys. By default it has no cache

jwksURI string <optional>

A valid, direct URI to fetch the JSON Web Key Set (JWKS).

expectedAlg string <optional>
'RS256'

algorithm in which the id_token was signed and will be used to validate

leeway number <optional>
60

number of seconds that the clock can be out of sync

maxAge number <optional>

max age while validating expiration of the id_token