# LiveKitTokenGrant
Source: https://docs.maelstrom-ai.co/dev/reference/realtime-livekit/interfaces/livekittokengrant/
Documentation revision: 89a8f5e9d10cedcf0b30376d7846113f06f26120
SDK manifests in this build: @maelstrom-co/react@0.2.1, @maelstrom-co/client@0.2.1, @maelstrom-co/connectors@0.2.1, @maelstrom-co/protocol@0.2.1, @maelstrom-co/engine@0.2.1
These docs follow this source revision. Manifest versions do not prove release compatibility; verify the installed package exports before using an API.

Defined in: packages/realtime-protocol/dist/lib/livekit-token.d.ts:15

A LiveKit access token and room URL for a single room.

The server sibling (`@maelstrom-co/realtime-livekit-server`) mints this; the browser adapter consumes `token` and `url` to join the room. The grant’s `expiresAt` describes validity for each initial or fresh room connection, including an explicit `connect()` after `disconnect()`. Expiration does not affect an active room or SDK-managed reconnects for an already connected participant because LiveKit pushes refreshed tokens to connected clients. The browser adapter does not read `expiresAt` or schedule proactive renewal.

## Extends

-   `TokenGrant`

## Properties

### expiresAt

> `readonly` **expiresAt**: `UnixSeconds`

Defined in: packages/realtime-protocol/dist/lib/livekit-token.d.ts:32

Absolute Unix-epoch second after which this JWT cannot authenticate an initial or fresh room connection. Token expiry is checked for each such connection, including an explicit `connect()` after `disconnect()`. It does not impact SDK-managed reconnects for an already connected participant: LiveKit pushes refreshed tokens to connected clients, and the SDK uses the refreshed token for managed reconnects. Expiry alone does not disconnect an active participant or end the room.

The browser adapter does not read this value, schedule an automatic refresh, or impose a maximum active-room duration. Each fresh `connect()` invokes `mintToken`. Production hosts must enforce session-duration and cleanup policy independently of this timestamp.

#### Overrides

`TokenGrant.expiresAt`

* * *

### token

> `readonly` **token**: `string`

Defined in: packages/realtime-protocol/dist/lib/livekit-token.d.ts:16

* * *

### url

> `readonly` **url**: `string`

Defined in: packages/realtime-protocol/dist/lib/livekit-token.d.ts:17
