---
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/36eea0d308f1312d1a446ec8813ed30b0bdba62c/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
