Skip to content

Latest commit

 

History

History
46 lines (27 loc) · 1.15 KB

TokenEndpointResponseHelpers.md

File metadata and controls

46 lines (27 loc) · 1.15 KB

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(): undefined | IDToken

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

Note: Returns undefined when expires_in was not returned by the authorization server

Returns

undefined | IDToken


expiresIn()

expiresIn(): undefined | number

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

undefined | number