Ephemeral key returned by the API.

interface ClientSecret {
    expires_at: number;
    value: string;
}

Properties

Properties

expires_at: number

Timestamp for when the token expires. Currently, all tokens expire after one minute.

value: string

Ephemeral key usable in client environments to authenticate connections to the Realtime API. Use this in client-side environments rather than a standard API token, which should only be used server-side.