Interface: TokenEndpointResponseHelpers

October 24, 2025 ยท View on GitHub

๐Ÿ’— Help the project

Support from the community to continue maintaining and improving this module is welcome. If you find the module useful, please consider supporting the project by becoming a sponsor.


Helpers attached to any resolved TokenEndpointResponse

Methods

claims()

โ–ธ claims(): IDToken | undefined

Returns the parsed JWT Claims Set of an id_token returned by the authorization server

Note


Returns undefined when id_token was not returned by the authorization server

Returns

IDToken | undefined


expiresIn()

โ–ธ expiresIn(): number | undefined

Returns the number of seconds until the access_token expires

Note


Returns 0 when already expired

Note


Returns undefined when expires_in was not returned by the authorization server

Returns

number | undefined