From 61ec6a0797b13cf4249536a05733615ea215f237 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?The=CC=81o=20Monnom?= Date: Mon, 4 Dec 2023 15:40:54 +0100 Subject: [PATCH] fix access token --- livekit-api/livekit/api/access_token.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/livekit-api/livekit/api/access_token.py b/livekit-api/livekit/api/access_token.py index 6ccc9a5c..bd49effa 100644 --- a/livekit-api/livekit/api/access_token.py +++ b/livekit-api/livekit/api/access_token.py @@ -18,6 +18,7 @@ import datetime import os import jwt +from typing import List DEFAULT_TTL = datetime.timedelta(hours=6) DEFAULT_LEEWAY = datetime.timedelta(minutes=1) @@ -43,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