---
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:47](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/1cc5681b8c76554833dc7a40097f33641882a372/packages/b2c-tooling-sdk/src/scapi/shopper.ts#L47)

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:52](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/1cc5681b8c76554833dc7a40097f33641882a372/packages/b2c-tooling-sdk/src/scapi/shopper.ts#L52)

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:66](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/1cc5681b8c76554833dc7a40097f33641882a372/packages/b2c-tooling-sdk/src/scapi/shopper.ts#L66)

Forget all sessions; subsequent requests start as new guests.

#### Returns

`void`
