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

# wallet.sessionExpiresAt

> When the current session lapses, or null before ready() resolves.

```ts theme={null}
sessionExpiresAt(): Date | null
```

When the current session lapses, or `null` before [`ready()`](/sdks/web/reference/wallet/ready) resolves (and after [`destroy()`](/sdks/web/reference/wallet/destroy)). [`refreshSession()`](/sdks/web/reference/wallet/refreshSession) updates this value. Check it to refresh ahead of expiry rather than waiting for a call to fail.

## Example

```ts theme={null}
const expiresAt = wallet.sessionExpiresAt(); // Date | null
```
