Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • AccessToken

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

  • Creates a new AccessToken

    Parameters

    • Optional apiKey: string

      API Key, can be set in env LIVEKIT_API_KEY

    • Optional apiSecret: string

      Secret, can be set in env LIVEKIT_API_SECRET

    • Optional options: AccessTokenOptions

    Returns AccessToken

Properties

Optional identity

identity: string

Optional ttl

ttl: string | number

Accessors

metadata

  • set metadata(md: string): void
  • Set metadata to be passed to the Participant, used only when joining the room

    Parameters

    • md: string

    Returns void

name

  • set name(name: string): void

sha256

  • get sha256(): undefined | string
  • set sha256(sha: undefined | string): void

Methods

addGrant

toJwt

  • toJwt(): string

Generated using TypeDoc