SandboxTokenSource class
A token source that queries LiveKit's sandbox token server for development and testing.
- Inheritance
-
- Object
- EndpointTokenSource
- DevelopmentTokenSource
- SandboxTokenSource
- Available extensions
- Annotations
-
- @Deprecated('Use DevelopmentTokenSource instead')
Constructors
- SandboxTokenSource({required String sandboxId})
- Initialize with a sandbox ID from LiveKit Cloud.
Properties
- client → Client?
-
Optional HTTP client for testing purposes.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Map<
String, String> -
Additional HTTP headers to include with the request.
finalinherited
- method → String
-
The HTTP method to use for the token request (defaults to "POST").
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- uri → Uri
-
The URL endpoint for token generation.
This should point to your backend service that generates LiveKit tokens.
finalinherited
Methods
-
cached(
{TokenStore? store, TokenValidator? validator}) → CachingTokenSource -
Available on TokenSourceConfigurable, provided by the CachedTokenSource extension
Wraps this token source with caching capabilities. -
fetch(
TokenRequestOptions options) → Future< TokenSourceResponse> -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited