Skip to content

Use DevelopmentTokenSource instead of deprecated SandboxTokenSource - #50

Merged
MaxHeimbrock merged 1 commit into
mainfrom
use-development-token-source
Aug 26, 2026
Merged

Use DevelopmentTokenSource instead of deprecated SandboxTokenSource#50
MaxHeimbrock merged 1 commit into
mainfrom
use-development-token-source

Conversation

@MaxHeimbrock

@MaxHeimbrock MaxHeimbrock commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

SDK 2.16.0 deprecated SandboxTokenSource (it is now a @available(*, deprecated, renamed:) typealias) and renamed it to DevelopmentTokenSource. This switches the sample over.

Changes

  • VoiceAgentApp.swift: SandboxTokenSource(id:)DevelopmentTokenSource(id:). Same initializer, so this is a straight swap.
  • Renamed the 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.
  • Aligned the terminology with the LiveKit Cloud console, which labels the feature Development token server and the value Token server ID (it is no longer under project Options, and it is no longer called sandboxId).
  • Linked the current docs page — https://docs.livekit.io/frontends/build/authentication/development-token-server/ — from both the README and the AgentToConnect.development doc comment, replacing the stale /frontends/authentication/tokens/sandbox-token-server/ link.
  • Renamed the placeholder to "your-token-server-id" to match what you actually copy out of the console.

No "sandbox" references remain in the sample.

Testing

Tested locally.

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>
@MaxHeimbrock
MaxHeimbrock requested a review from pblazej August 26, 2026 09:01
@MaxHeimbrock
MaxHeimbrock merged commit 0991d55 into main Aug 26, 2026
6 checks passed
@MaxHeimbrock
MaxHeimbrock deleted the use-development-token-source branch August 26, 2026 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants