Home > @poq/sdk-sfcc > IAccountService > refreshToken
Method refreshes the access token and returns a new access token and a new refresh token.
Signature:
refreshToken(appIdentifier: string, existingRefreshToken: string): Promise<PoqResponse<AuthenticationResponse>>;
Parameter | Type | Description |
---|---|---|
appIdentifier | string | The unique guid v4 app identifier. |
existingRefreshToken | string | Refresh token to exchange on a new one. |
Returns:
Promise<PoqResponse<AuthenticationResponse>>
Refreshed token.