You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`token_source_literal.cpp`|`LiteralTokenSource`| You already have a URL + JWT (minted out of band, e.g. `lk token create`). The SDK consumes them as-is. |
20
-
|`token_source_endpoint.cpp`|`EndpointTokenSource`| Recommended for production. The SDK POSTs request options to your backend token endpoint, which returns the URL + a fresh JWT. API keys stay server-side. |
21
-
|`token_source_sandbox.cpp`|`SandboxTokenSource`| Local development only. Uses LiveKit Cloud's sandbox token server. Not for production. |
22
-
|`token_source_custom.cpp`|`CustomTokenSource`| You have an internal auth/token system. Plug in your own async callback that returns credentials. |
23
-
|`token_source_caching.cpp`|`CachingTokenSource`| A decorator that adds JWT-aware caching around any configurable source (endpoint/sandbox/custom) to cut down on fetch calls. |
17
+
|Type|Example| When to use |
18
+
|---|---|---|
19
+
|`LiteralTokenSource`|`token_source_literal.cpp`| You already have a URL + JWT (minted out of band, e.g. `lk token create`). The SDK consumes them as-is. |
20
+
|`EndpointTokenSource`|`token_source_endpoint.cpp`| Recommended for production. The SDK POSTs request options to your backend token endpoint, which returns the URL + a fresh JWT. API keys stay server-side. |
21
+
|`SandboxTokenSource`|`token_source_sandbox.cpp`| Local development only. Uses LiveKit Cloud's sandbox token server. Not for production. |
22
+
|`CustomTokenSource`|`token_source_custom.cpp`| You have an internal auth/token system. Plug in your own async callback that returns credentials. |
23
+
|`CachingTokenSource`|`token_source_caching.cpp`| A decorator that adds JWT-aware caching around any configurable source (endpoint/sandbox/custom) to cut down on fetch calls. |
24
24
25
25
`LiteralTokenSource` is *fixed* (no per-call options); the others are
0 commit comments