Use DevelopmentTokenSource instead of deprecated SandboxTokenSource - #50
Merged
Conversation
SDK 2.16.0 deprecated `SandboxTokenSource` and renamed it to `DevelopmentTokenSource`. Switch the sample over and rename the `AgentToConnect.sandbox` case to `.development` to match. Also align the wording with the LiveKit Cloud console, which now labels the feature "Development token server" and the value "Token server ID", and link the current docs page in both the README and the `AgentToConnect.development` doc comment. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
pblazej
approved these changes
Aug 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SDK 2.16.0 deprecated
SandboxTokenSource(it is now a@available(*, deprecated, renamed:)typealias) and renamed it toDevelopmentTokenSource. This switches the sample over.Changes
VoiceAgentApp.swift:SandboxTokenSource(id:)→DevelopmentTokenSource(id:). Same initializer, so this is a straight swap.AgentToConnect.sandbox(id:)case to.development(id:)so the sample's own naming tracks the SDK. Anyone who forked this and wrote.sandbox(id:)will need to update one line.sandboxId).AgentToConnect.developmentdoc comment, replacing the stale/frontends/authentication/tokens/sandbox-token-server/link."your-token-server-id"to match what you actually copy out of the console.No "sandbox" references remain in the sample.
Testing
Tested locally.