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 |
Defined in
Last Updated: 05 June, 2020