---
url: >-
  https://game-engine-io.github.io/enginex-frontend-sdk/reference/api/@getenginex/sdk/interfaces/Session.md
---
[Reference](../../../index.md) / [@getenginex/sdk](../index.md) / Session

# Session

Current session, derived from the access token. `session.get()` returns an `Object.freeze`d object — the
fields are `readonly` so the type reflects that immutability at compile time.

## Properties

### expiresAt?

> `readonly` `optional` **expiresAt?**: `number`

Access token expiry in milliseconds since the epoch.

***

### operatorId?

> `readonly` `optional` **operatorId?**: `string`

Operator id (`operator_id`).

***

### sessionId?

> `readonly` `optional` **sessionId?**: `string`

Session id at the gateway (`sid`).

***

### status

> `readonly` **status**: [`SessionStatus`](../type-aliases/SessionStatus.md)

`authenticated` when there are tokens.

***

### userId?

> `readonly` `optional` **userId?**: `string`

User id (`sub`).
