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

[@salesforce/b2c-tooling-sdk](../../modules.md) / [scapi](../index.md) / ScapiShopperSessions

# Class: ScapiShopperSessions

Defined in: [packages/b2c-tooling-sdk/src/scapi/shopper.ts:43](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/bceb8da43dd8bc63d57932bbd905d36a1b40c949/packages/b2c-tooling-sdk/src/scapi/shopper.ts#L43)

Guest shopper sessions per tenant, SLAS client, and site. A session outlives
individual executions so baskets and other shopper state carry across them;
expired tokens are refreshed, keeping the same shopper.

## Constructors

### Constructor

> **new ScapiShopperSessions**(): `ScapiShopperSessions`

#### Returns

`ScapiShopperSessions`

## Methods

### for()

> **for**(`config`): [`ScapiShopperAuth`](../interfaces/ScapiShopperAuth.md)

Defined in: [packages/b2c-tooling-sdk/src/scapi/shopper.ts:48](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/bceb8da43dd8bc63d57932bbd905d36a1b40c949/packages/b2c-tooling-sdk/src/scapi/shopper.ts#L48)

Shopper auth bound to one configuration.

#### Parameters

##### config

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

#### Returns

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

***

### reset()

> **reset**(): `void`

Defined in: [packages/b2c-tooling-sdk/src/scapi/shopper.ts:58](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/bceb8da43dd8bc63d57932bbd905d36a1b40c949/packages/b2c-tooling-sdk/src/scapi/shopper.ts#L58)

Forget all sessions; subsequent requests start as new guests.

#### Returns

`void`
