API Reference > imodeljs-clients > Authentication > IAuthorizationClient > getAccessToken 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 Returns - Promise<AccessToken> Defined in core/clients/src/AuthorizationClient.ts Line 32 Last Updated: 13 June, 2024