Constructors
constructor
- new AccessToken(apiKey?, apiSecret?, options?): AccessToken
Properties
Optional
identity
identity?: string
Accessors
attributes
- get attributes(): undefined | Record<string, string>
Returns undefined | Record<string, string>
- set attributes(attrs): void
Parameters
- attrs: Record<string, string>
Returns void
kind
- get kind(): undefined | string
Returns undefined | string
- set kind(kind): void
Returns void
metadata
- get metadata(): undefined | string
Returns undefined | string
- set metadata(md): void
Returns void
name
- get name(): undefined | string
Returns undefined | string
- set name(name): void
Returns void
roomConfig
- get roomConfig(): undefined | RoomConfiguration
Returns undefined | RoomConfiguration
- set roomConfig(config): void
Parameters
- config: undefined | RoomConfiguration
Returns void
roomPreset
- get roomPreset(): undefined | string
Returns undefined | string
- set roomPreset(preset): void
Parameters
- preset: undefined | string
Returns void
sha256
- get sha256(): undefined | string
Returns undefined | string
- set sha256(sha): void
Returns void
Methods
addGrant
- addGrant(grant): void
Returns void
addSIPGrant
- addSIPGrant(grant): void
Returns void
toJwt
- toJwt(): Promise<string>
Returns Promise<string>
JWT encoded token
Creates a new AccessToken