|
LiveKit C++ Client SDK v1.4.0
Real-time audio/video/data SDK for C++
|
Token source that delegates token generation to your callback. More...
#include <token_source.h>


Public Member Functions | |
| std::future< Result< TokenSourceResponse, TokenSourceError > > | fetch (const TokenRequestOptions &options={}) override |
Static Public Member Functions | |
| static std::unique_ptr< CustomTokenSource > | create (std::function< std::future< Result< TokenSourceResponse, TokenSourceError > >(const TokenRequestOptions &)> provider) |
Create a token source that delegates fetching to provider. | |
Token source that delegates token generation to your callback.
Choose this when you already have an internal auth/token system and want to integrate it with LiveKit's request options without adopting the standardized token endpoint format.
|
static |
Create a token source that delegates fetching to provider.
The callback receives TokenRequestOptions for each fetch and returns TokenSourceResponse produced by your application.
| provider | Async provider called for each fetch. |
provider.
|
overridevirtual |
Implements livekit::TokenSourceConfigurable.