API Reference > backend-itwin-client > Authentication > AgentAuthorizationClient > 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/backend-itwin-client/src/oidc/AgentAuthorizationClient.ts Line 137 Last Updated: 11 June, 2024