Function: refreshCantonAuthorizationCodeToken()
refreshCantonAuthorizationCodeToken(
config:AuthorizationCodeAuthConfig,refreshToken:string,options?:OAuthRequestOptions):Promise<AccessToken>
Defined in: canton/authentication/authorization-code.ts:353
Refresh an access token using the refresh_token grant (RFC 6749 §6).
Parameters
| Parameter | Type | Description |
|---|---|---|
config | AuthorizationCodeAuthConfig | Authorization code config (with authUrl, clientId). |
refreshToken | string | The refresh token from a prior exchangeAuthorizationCode. |
options? | OAuthRequestOptions | Optional fetch override and abort signal. |
Returns
Promise<AccessToken>
A fresh AccessToken (with a new refreshToken when rotated).
Throws
CCIPError (CANTON_AUTH_ERROR) on refresh failure.