Skip to content

Add token source API for fetching LiveKit tokens#177

Draft
alan-george-lk wants to merge 4 commits into
mainfrom
feature/token_source_api
Draft

Add token source API for fetching LiveKit tokens#177
alan-george-lk wants to merge 4 commits into
mainfrom
feature/token_source_api

Conversation

@alan-george-lk

Copy link
Copy Markdown
Collaborator

WIP

@xianshijing-lk xianshijing-lk left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might need help to understand the TokenSource a bit more

Comment thread include/livekit/room.h Outdated
///
/// Invoked on the application thread during @ref Room::connect before the FFI
/// connect request is sent. The returned future must resolve to a non-empty JWT.
using TokenSource = std::function<std::future<std::string>()>;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't really understand this TokenSource impl, is it supposed to be implemented by our developers ? or we can use some implementation in Rust ?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was a bad first pass -- I reviewed the code last night and felt the same. Working on a proper implementation and will request your review when actually ready :)

@alan-george-lk alan-george-lk force-pushed the feature/token_source_api branch from c35572a to 2ec2781 Compare June 18, 2026 16:15
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