API Reference > frontend-authorization-client > BrowserAuthorization > BrowserAuthorizationClient > getAccessToken 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 frontend-authorization/src/oidc/browser/BrowserAuthorizationClient.ts Line 286 Last Updated: 11 June, 2024