API Reference > imodeljs-clients-backend > Authentication > OidcAgentClient > getAccessToken getAccessToken Method Returns a promise that resolves to the AccessToken of the currently authorized client. The token is refreshed if necessary. getAccessToken(requestContext?: ClientRequestContext): Promise<AccessToken> Parameter Type Description requestContext ClientRequestContext Returns - Promise<AccessToken> Defined in core/clients-backend/src/oidc/OidcAgentClient.ts Line 118 Last Updated: 13 June, 2024