Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
7a2f59f
feat: port ConnectionCredentials implementation from agent-starter-re…
1egoman Sep 9, 2025
8f6fb41
refactor: move roomName / participantName docs to ConnectionDetails
1egoman Sep 9, 2025
70416fe
refactor: reorder literal and custom
1egoman Sep 9, 2025
7f8cce4
fix: rename SandboxTokenServer -> SandboxTokenServerOptions
1egoman Sep 9, 2025
6929247
feat: optimistically regenerate new credentials on disconnect
1egoman Sep 9, 2025
981f80c
fix: add changeset
1egoman Sep 9, 2025
1059a82
fix: run prettier
1egoman Sep 9, 2025
f2c07fe
fix: add BigInt
1egoman Sep 9, 2025
4e54fec
fix: remove @types/node to try to fix ci build issue
1egoman Sep 9, 2025
4173823
fix: migrate back to known good pnpm lock
1egoman Sep 9, 2025
a3ff2d9
feat: use logger for warnings instead of console
1egoman Sep 10, 2025
70ed1a2
feat: add ConnectionCredentials.Response / ConnectionCredentials.Resp…
1egoman Sep 10, 2025
8edc1ae
feat: add mechanism to get room config from token rather than returni…
1egoman Sep 10, 2025
c48c7c1
feat: add ability to explicitly pass ConnectionCredentials.Request in…
1egoman Sep 10, 2025
f8c92f2
fix: run npm run format
1egoman Sep 10, 2025
30c825f
fix: remove dead code
1egoman Sep 10, 2025
8a8a549
feat: re-add accidentally removed roomConfig from SandboxTokenServerO…
1egoman Sep 10, 2025
e85f4b2
fix: address lint issue
1egoman Sep 10, 2025
3e3b300
feat: change ConnectionCredentials so Request gets set ahead of time …
1egoman Sep 11, 2025
1b346df
feat: get rid of `roomName` / `participantName` from response, these …
1egoman Sep 11, 2025
b8301be
feat: get rid of connectionCredentialsRequest parameter when calling …
1egoman Sep 11, 2025
379eda6
fix: run npm run format
1egoman Sep 11, 2025
43bb782
fix: run eslint --fix
1egoman Sep 11, 2025
c2848bc
fix: address issue where token expiry error would always show on the …
1egoman Sep 11, 2025
a51dff8
feat: store currently active credentials fetch and re-use it if multi…
1egoman Sep 11, 2025
ab012bc
feat: remove ability to inject custom logger name
1egoman Sep 12, 2025
a9e038d
feat: add new ConnectionCredentials.Refreshable abstract base class
1egoman Sep 12, 2025
352f89f
fix: update class name in docs comment
1egoman Sep 12, 2025
4d83430
feat: add participantIdentity / participantMetadata / participantAttr…
1egoman Sep 15, 2025
f6150cf
feat: updated deprecation warnings to include mention of ConnectionCr…
1egoman Sep 15, 2025
60a5e16
feat: remove SandboxTokenServer security warning, it sounds like some…
1egoman Sep 16, 2025
15255fe
feat: rename from ConnectionCredentials -> TokenSource
1egoman Sep 17, 2025
1f8089d
fix: update old token source name
1egoman Sep 18, 2025
9791955
feat: remove individual getters and return the whole jwt payload
1egoman Sep 18, 2025
fa47c48
feat: add -Payload suffix to TokenSource.Request / TokenSource.Respon…
1egoman Sep 18, 2025
cfbc9e2
feat: add new TokenSource.Endpoint and update TokenSource.SandboxToke…
1egoman Sep 19, 2025
9baa260
feat: add old sandbox token server back temporarily as SandboxTokenSe…
1egoman Sep 19, 2025
de1f6f6
fix: update to TokenSource name in changeset
1egoman Sep 22, 2025
8c8fba0
fix: update to tokenSource name in Room class
1egoman Sep 22, 2025
5a767cb
feat: migrate to using static method constructors for TokenSource types
1egoman Sep 23, 2025
058f10b
feat: add TokenSourceRequest/TokenSourceResponse protobuf messages in…
1egoman Sep 23, 2025
cf26880
feat: expose protobufs in TokenSource.Custom implementation over raw …
1egoman Sep 24, 2025
ba1dd74
feat: get rid of tokensource integration logic in Room temporarily
1egoman Sep 29, 2025
bcfa010
feat: more over TokenSource modifications from components-js
1egoman Sep 29, 2025
dd811e6
refactor: split up TokenSource into multiple files and add lots of docs
1egoman Sep 29, 2025
81ab62d
fix: update missing instance of RoomConfigurationPayload
1egoman Sep 29, 2025
e1bdbfc
fix: address linting errors
1egoman Sep 29, 2025
44509bd
fix: run npm run format
1egoman Sep 29, 2025
6145659
fix: rename TokenSource to TokenSourceBase to fix name clash
1egoman Sep 29, 2025
e3a9034
feat: export more tokensource values
1egoman Sep 29, 2025
9a17386
feat: rename TokenSourceOptions => TokenSourceFetchOptions
1egoman Oct 1, 2025
438c5dc
fix: re-add missing Promise<void>
1egoman Oct 1, 2025
98eac04
feat: add agentMetadata param alongside agentName
1egoman Oct 1, 2025
c8b46ae
fix: allow second parameter to TokenSource.sandboxTokenServer to be o…
1egoman Oct 1, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/mean-mirrors-change.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'livekit-client': patch
---

add TokenSource token fetching abstraction
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@
},
"dependencies": {
"@livekit/mutex": "1.1.1",
"@livekit/protocol": "1.41.0",
"@livekit/protocol": "1.42.0",
"events": "^3.3.0",
"jose": "^6.1.0",
"loglevel": "^1.9.2",
"sdp-transform": "^2.15.0",
"ts-debounce": "^4.0.0",
Expand Down
26 changes: 17 additions & 9 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ export * from './room/errors';
export * from './room/events';
export * from './room/track/Track';
export * from './room/track/create';
export * from './room/token-source/TokenSource';
export * from './room/token-source/types';
export { facingModeFromDeviceLabel, facingModeFromLocalTrack } from './room/track/facingMode';
export * from './room/track/options';
export * from './room/track/processor/types';
Expand Down
1 change: 1 addition & 0 deletions src/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export enum LogLevel {
export enum LoggerNames {
Default = 'livekit',
Room = 'livekit-room',
TokenSource = 'livekit-token-source',
Participant = 'livekit-participant',
Track = 'livekit-track',
Publication = 'livekit-track-publication',
Expand Down
Loading
Loading