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  

Returns - Promise<AccessToken>

Defined in

Last Updated: 11 June, 2024