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

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

# Function: setAuthSessionBackend()

> **setAuthSessionBackend**(`backend`): `void`

Defined in: [packages/b2c-tooling-sdk/src/auth/session-store.ts:231](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/2feab01f654eec77c6d702777ec2818472f131f1/packages/b2c-tooling-sdk/src/auth/session-store.ts#L231)

Register an auth-session backend. Pass `null` to fall back to the default file backend.

## Parameters

### backend

[`AuthSessionBackend`](../interfaces/AuthSessionBackend.md) | `null`

## Returns

`void`
