---
editLink: false
lastUpdated: false
---

[@salesforce/b2c-tooling-sdk](../../modules.md) / [slas](../index.md) / refreshShopperToken

# Function: refreshShopperToken()

> **refreshShopperToken**(`config`, `refreshToken`): `Promise`\<[`SlasTokenResponse`](../interfaces/SlasTokenResponse.md)\>

Defined in: [packages/b2c-tooling-sdk/src/slas/token.ts:263](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/bceb8da43dd8bc63d57932bbd905d36a1b40c949/packages/b2c-tooling-sdk/src/slas/token.ts#L263)

Refreshes a shopper access token, keeping the shopper's session (usid).

Private clients authenticate with HTTP Basic using the client secret.

## Parameters

### config

[`SlasTokenConfig`](../interfaces/SlasTokenConfig.md)

SLAS token configuration

### refreshToken

`string`

Refresh token from a previous token response

## Returns

`Promise`\<[`SlasTokenResponse`](../interfaces/SlasTokenResponse.md)\>

The token response including a new access_token and refresh_token
