getAccessToken Method

Returns a promise that resolves to the AccessToken if signed in. The token is refreshed if it's possible and necessary. Note that some implementations may require this method to be called to refresh the token - not all clients refresh the token by monitoring the expiry.

getAccessToken(requestContext?: ClientRequestContext): Promise<AccessToken>

Parameter Type Description
requestContext ClientRequestContext  

Returns - Promise<AccessToken>

Last Updated: 12 June, 2024