这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@biglittlebigben
Copy link
Contributor

@biglittlebigben biglittlebigben commented Oct 1, 2024

This also makes the VideoGrant constructor call within auth_header calls explicit for clarity.

Copy link
Member

@davidzhao davidzhao left a comment

Choose a reason for hiding this comment

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

lg, and thanks for fixing the video grants

)
headers = {}
t = ::LiveKit::AccessToken.new(api_key: @api_key, api_secret: @api_secret)
t.add_grant(video_grant)
Copy link
Member

Choose a reason for hiding this comment

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

should we handle passing in a nil video grant?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It does work right now by constructing a default video grant but I can handle the case explicitly, yes

@biglittlebigben biglittlebigben merged commit c44cd2d into main Oct 3, 2024
6 checks passed
@biglittlebigben biglittlebigben deleted the benjamin/SIP branch October 3, 2024 00:06
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.

4 participants