mirror of
https://github.com/hanzoai/openid-client.git
synced 2026-09-24 17:01:10 +00:00
1.2 KiB
1.2 KiB
Interface: TokenEndpointResponseHelpers
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
undefinedwhen 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
0when already expired
Note
Returns
undefinedwhen expires_in was not returned by the authorization server
Returns
number | undefined