> ## Documentation Index
> Fetch the complete documentation index at: https://docs.buckspay.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Function: serializeSession()

# Function: serializeSession()

> **serializeSession**(`s`): `string`

Defined in: [packages/core/src/session.ts:16](https://github.com/bucks-pay/buckspay-sdk/blob/43ad599d2776cb5d657043c36847b3318093ccf4/packages/core/src/session.ts#L16)

Serialize a session to a base64url-encoded JSON blob (e.g. for secure storage). Pure.

## Parameters

### s

[`Session`](/sdk-reference/core/src/interfaces/Session)

## Returns

`string`
