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
endpointUrlstringheadersIEnumerable<StringPair>
Methods
FetchConnectionDetails(TokenSourceFetchOptions)
public Task<ConnectionDetails> FetchConnectionDetails(TokenSourceFetchOptions options)
Parameters
optionsTokenSourceFetchOptions