API Reference > imodeljs-clients > Authentication > IOidcFrontendClient > getAccessToken getAccessToken Method Returns a promise that resolves to the AccessToken if signed in. The token is refreshed if it's possible and necessary. Note that some implementations may require this method to be called to refresh the token - not all clients refresh the token by monitoring the expiry. getAccessToken(requestContext?: ClientRequestContext): Promise<AccessToken> Parameter Type Description requestContext ClientRequestContext Returns - Promise<AccessToken> Defined in core/clients/src/oidc/OidcFrontendClient.ts Line 43 Last Updated: 13 June, 2024