LiveKit JS Server SDK - v2.20.1
    Preparing search index...

    Class AccessToken

    Index
    identity?: string
    ttl: string | number
    • 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.

      Returns string