getAccessToken Method
Returns a promise that resolves to the AccessToken of the currently authorized user. The token is refreshed as necessary.
getAccessToken(requestContext?: ClientRequestContext): Promise<AccessToken>
throws BentleyError If signIn() was not called, or there was an authorization error.
Parameter | Type | Description |
---|---|---|
requestContext | ClientRequestContext |
Defined in
Last Updated: 08 January, 2020