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

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

# Function: getStoredSession()

> **getStoredSession**(): [`StatefulSession`](../interfaces/StatefulSession.md) \| `null`

Defined in: [packages/b2c-tooling-sdk/src/auth/stateful-store.ts:79](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/e7c16f1ae423da0aa47b3e10be88f9770b53619b/packages/b2c-tooling-sdk/src/auth/stateful-store.ts#L79)

Reads the current stateful session from the JSON file.
Returns null if no session file exists or the file is invalid.

## Returns

[`StatefulSession`](../interfaces/StatefulSession.md) \| `null`
