Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: access token VideoGrants types #112

Merged
merged 2 commits into from
Dec 4, 2023
Merged
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions livekit-api/livekit/api/access_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import datetime
import os
import jwt
from typing import Optional
from typing import Optional, List

DEFAULT_TTL = datetime.timedelta(hours=6)
DEFAULT_LEEWAY = datetime.timedelta(minutes=1)
Expand All @@ -44,7 +44,7 @@ class VideoGrants:
# TrackSource types that a participant may publish.
# When set, it supercedes CanPublish. Only sources explicitly set here can be
# published
can_publish_sources: list[str] = dataclasses.field(default_factory=list)
can_publish_sources: List[str] = dataclasses.field(default_factory=list)

# by default, a participant is not allowed to update its own metadata
can_update_own_metadata: bool = False
Expand Down
Loading