> ## 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.

# endstate.session

> Adopts a session token you already hold, from a reload or from your server.

```ts theme={null}
session(token: string, options?: AdoptSessionOptions): TapSession
```

## Example

```ts theme={null}
const session = endstate.session(token);
await session.refreshScope();
```
