API Reference > imodeljs-frontend > OIDC > OidcBrowserClient > 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 core/frontend/src/oidc/OidcBrowserClient.ts Line 263 Last Updated: 12 June, 2024