@@ -54,23 +54,23 @@ struct TokenSourceResponse {
5454 std::optional<std::string> room_name;
5555};
5656
57- // / @brief Per-call options sent to configurable token sources (endpoint, sandbox , custom).
57+ // / @brief Per-call options sent to configurable token sources (endpoint, development , custom).
5858// /
5959// / All fields are optional. Unset or empty values are omitted from the token-server
6060// / request body. The token server embeds the provided values into the returned JWT;
6161// / @ref Room::connect does not read these options directly after fetch — the room,
6262// / identity, and grants come from the token.
6363// /
6464// / @note Which fields are honored depends on the token server. The LiveKit Cloud
65- // / sandbox token server auto-generates @c room_name, @c participant_identity, and
65+ // / development token server auto-generates @c room_name, @c participant_identity, and
6666// / related fields when they are omitted. A project token endpoint typically accepts
6767// / the full set below, including agent dispatch via @c room_config.
6868struct TokenRequestOptions {
6969 // / Target room name encoded into the token request.
7070 // /
7171 // / Set this when you need a stable room across reconnects or when coordinating
7272 // / multiple clients in the same session. If omitted, many token servers (including
73- // / the sandbox ) assign a new room name on each fetch, so repeat connections may
73+ // / the development token server ) assign a new room name on each fetch, so repeat connections may
7474 // / land in different rooms.
7575 std::optional<std::string> room_name;
7676
@@ -139,8 +139,8 @@ struct TokenEndpointOptions {
139139 std::chrono::milliseconds timeout = std::chrono::seconds(30 );
140140};
141141
142- // / @brief Options for @ref SandboxTokenSource .
143- struct SandboxTokenServerOptions {
142+ // / @brief Options for @ref DevelopmentTokenSource .
143+ struct DevelopmentTokenServerOptions {
144144 // / LiveKit Cloud API base URL (default @c https://cloud-api.livekit.io).
145145 std::string base_url = " https://cloud-api.livekit.io" ;
146146};
@@ -283,36 +283,45 @@ class LIVEKIT_API EndpointTokenSource final : public TokenSourceConfigurable {
283283 friend struct EndpointTokenSourceTestAccess ;
284284};
285285
286- // / @brief Token source that uses LiveKit Cloud's sandbox token server (development only).
286+ // / @brief Token source that uses LiveKit Cloud's development token server (development only).
287287// /
288288// / Use this for local development and quick testing when you do not yet have your
289289// / own backend token endpoint. Do not use in production.
290290// /
291291// / @see https://docs.livekit.io/frontends/build/authentication/sandbox-token-server/
292- class LIVEKIT_API SandboxTokenSource final : public TokenSourceConfigurable {
292+ class LIVEKIT_API DevelopmentTokenSource final : public TokenSourceConfigurable {
293293public:
294- // / @brief Create a token source backed by the LiveKit Cloud sandbox token server.
294+ // / @brief Create a token source backed by the LiveKit Cloud development token server.
295295 // /
296- // / @param sandbox_id Sandbox identifier from LiveKit Cloud (surrounding whitespace is trimmed).
297- // / @param options Sandbox token server options.
298- // / @return A configurable token source backed by the sandbox token server.
299- static std::unique_ptr<SandboxTokenSource > create (const std::string& sandbox_id,
300- const SandboxTokenServerOptions & options = {});
296+ // / @param sandbox_id Development token server identifier from LiveKit Cloud (surrounding whitespace is trimmed).
297+ // / @param options Development token server options.
298+ // / @return A configurable token source backed by the development token server.
299+ static std::unique_ptr<DevelopmentTokenSource > create (const std::string& sandbox_id,
300+ const DevelopmentTokenServerOptions & options = {});
301301
302302 std::future<Result<TokenSourceResponse, TokenSourceError>> fetch (const TokenRequestOptions& options = {}) override ;
303303
304304private:
305- explicit SandboxTokenSource (std::unique_ptr<TokenSourceConfigurable> endpoint);
305+ explicit DevelopmentTokenSource (std::unique_ptr<TokenSourceConfigurable> endpoint);
306306
307307 std::unique_ptr<TokenSourceConfigurable> endpoint_;
308308
309- friend struct SandboxTokenSourceTestAccess ;
309+ friend struct DevelopmentTokenSourceTestAccess ;
310310};
311311
312+ // / @deprecated Renamed to @ref DevelopmentTokenSource.
313+ using SandboxTokenSource [[deprecated("SandboxTokenSource is deprecated; use DevelopmentTokenSource instead")]] =
314+ DevelopmentTokenSource;
315+
316+ // / @deprecated Renamed to @ref DevelopmentTokenServerOptions.
317+ using SandboxTokenServerOptions
318+ [[deprecated("SandboxTokenServerOptions is deprecated; use DevelopmentTokenServerOptions instead")]] =
319+ DevelopmentTokenServerOptions;
320+
312321// / @brief Decorator that adds JWT-aware caching to another configurable token source.
313322// /
314323// / Wrap @ref CustomTokenSource, @ref EndpointTokenSource, or
315- // / @ref SandboxTokenSource to reduce token fetch calls. A cached response is
324+ // / @ref DevelopmentTokenSource to reduce token fetch calls. A cached response is
316325// / reused until the request options change or the JWT expires. Call
317326// / @ref invalidate to force the next @ref fetch to bypass the cache.
318327class LIVEKIT_API CachingTokenSource final : public TokenSourceConfigurable {
0 commit comments