API Reference > imodeljs-clients-backend > Authentication > OidcAgentClient > refreshToken refreshToken Method Deprecated Use OidcAgentClient.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/clients-backend/src/oidc/OidcAgentClient.ts Line 76 Last Updated: 13 June, 2024