Table of Contents

Class TokenSourceEndpoint

Namespace
LiveKit

Posts a JSON request to a token-server endpoint and returns the parsed ConnectionDetails. The body is built from per-call TokenSourceFetchOptions (room name, participant info, agent dispatch, etc.). Use for production token servers — see https://docs.livekit.io/frontends/build/authentication/endpoint/.

public class TokenSourceEndpoint : ITokenSourceConfigurable, ITokenSource
Inheritance
TokenSourceEndpoint
Implements
Derived
Inherited Members
Extension Methods

Constructors

TokenSourceEndpoint(string, IEnumerable<StringPair>)

public TokenSourceEndpoint(string endpointUrl, IEnumerable<StringPair> headers)

Parameters

endpointUrl string
headers IEnumerable<StringPair>

Methods

FetchConnectionDetails(TokenSourceFetchOptions)

public Task<ConnectionDetails> FetchConnectionDetails(TokenSourceFetchOptions options)

Parameters

options TokenSourceFetchOptions

Returns

Task<ConnectionDetails>