getAccessToken Method

Returns a promise that resolves to the AccessToken of the currently authorized user or authorized client (in the case of agent applications). The token is refreshed if necessary and possible.

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

throws BentleyError If there was an authorization error, or in the case of frontends, if the client wasn't used to signIn.

Parameter Type Description
requestContext ClientRequestContext  

Defined in

Last Updated: 08 January, 2020