Interface ParticipantTokenOptions

interface ParticipantTokenOptions {
    apiKey?: string;
    apiSecret?: string;
    attributes?: Record<string, string>;
    grant?: VideoGrant;
    identity: string;
    kind?: string;
    name?: string;
    ttl?: string | number;
}

Properties

apiKey?: string

API key to sign with, in place of the worker's.

apiSecret?: string

API secret to sign with, in place of the worker's.

attributes?: Record<string, string>
grant?: VideoGrant

Defaults to joining the job's room.

identity: string
kind?: string

Participant kind, such as 'agent'.

name?: string
ttl?: string | number

Lifetime of a token signed here, in seconds or as a string such as '4h'; defaults to that of AccessToken. Ignored in token mode, where the server sets it.