Interface GetWebSocketAuthHeadersOptions

Options for generating WebSocket authentication headers.

interface GetWebSocketAuthHeadersOptions {
    apiKeyId: string;
    apiKeySecret: string;
    audience?: string[];
    expiresIn?: number;
    source?: string;
    sourceVersion?: string;
}

Properties

apiKeyId: string

The API key ID

Examples: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' 'organizations/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/apiKeys/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'

apiKeySecret: string

The API key secret

Examples: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx==' (Edwards key (Ed25519)) '-----BEGIN EC PRIVATE KEY-----\n...\n...\n...==\n-----END EC PRIVATE KEY-----\n' (EC key (ES256))

audience?: string[]

Optional audience claim for the JWT

expiresIn?: number

Optional expiration time in seconds (defaults to 120)

source?: string

The source identifier for the request

sourceVersion?: string

The version of the source making the request