API Reference > backend-itwin-client > Authentication > AgentAuthorizationClient > refreshToken refreshToken Method Deprecated Use AgentAuthorizationClient.getAccessToken instead to always get a valid token. Refresh the access token - simply checks if the token is still valid before re-fetching a new access token refreshToken(requestContext: ClientRequestContext, jwt: AccessToken): Promise<AccessToken> Parameter Type Description requestContext ClientRequestContext jwt AccessToken Returns - Promise<AccessToken> Defined in core/backend-itwin-client/src/oidc/AgentAuthorizationClient.ts Line 95 Last Updated: 11 June, 2024