Poq.SDK.Node

Home > @poq/sdk-sfcc > AccountService > refreshToken

AccountService.refreshToken() method

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>>;

Parameters

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.