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

[@salesforce/b2c-tooling-sdk](../../modules.md) / [auth](../index.md) / saveAuthSession

# Function: saveAuthSession()

> **saveAuthSession**(`session`): `void`

Defined in: [packages/b2c-tooling-sdk/src/auth/session-store.ts:251](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/702798b6e2ea7765dbfd4b62ff999546a36b6859/packages/b2c-tooling-sdk/src/auth/session-store.ts#L251)

Write a session, replacing any prior record for the same clientId.

## Parameters

### session

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

## Returns

`void`
