Skip to content

LiveKitTokenRequest

Defined in: packages/realtime-livekit-server/src/lib/livekit-mint.ts:17

What a caller passes mintLiveKitToken to scope a token to one room. The package validates this request shape, while application transport retains authentication, authorization, CSRF, origin, rate-limit, and trusted-scope responsibilities.

readonly optional identity?: string

Defined in: packages/realtime-livekit-server/src/lib/livekit-mint.ts:21

Participant identity, defaulting to "user" when omitted.


readonly roomName: string

Defined in: packages/realtime-livekit-server/src/lib/livekit-mint.ts:19

Caller-provided room scope; validation trims surrounding whitespace before token scoping.