OptionalapiKey: string
API Key, can be set in env LIVEKIT_API_KEY
OptionalapiSecret: string
Secret, can be set in env LIVEKIT_API_SECRET
Both are needed only to sign: toJwt throws without them, while toClaimsJson works without.
Optionaloptions: AccessTokenOptionsSet metadata to be passed to the Participant, used only when joining the room
Returns the claims as JSON, without signing them: the payload toJwt
would sign, with the identity as identity and without the registered
claims (issuer, subject, expiry, not-before), which the signer sets. This is
the shape a LiveKit server reads to issue a token, as in an agent worker's
CreateJobTokenRequest. Needs no API key or secret.
JWT encoded token
Creates a new AccessToken