SandboxTokenSource class
A token source that queries LiveKit's sandbox token server for development and testing.
This token source connects to LiveKit Cloud's sandbox environment, which is perfect for quick prototyping and getting started with LiveKit development.
Warning: This token source is insecure and should never be used in production.
For production use, implement EndpointTokenSource with your own backend or use CustomTokenSource.
- Inheritance
-
- Object
- EndpointTokenSource
- SandboxTokenSource
- Available extensions
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