Files
openid-client/docs/interfaces/TokenEndpointResponseHelpers.md
2025-10-24 12:06:23 +02:00

1.2 KiB

Interface: TokenEndpointResponseHelpers

💗 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