diff --git a/livekit-api/livekit/api/access_token.py b/livekit-api/livekit/api/access_token.py index cba3d9df..f8b6fa22 100644 --- a/livekit-api/livekit/api/access_token.py +++ b/livekit-api/livekit/api/access_token.py @@ -65,9 +65,9 @@ class VideoGrants: @dataclasses.dataclass class Claims: exp: int = 0 - iss: str = "" # api key + iss: str = "" # api key nbf: int = 0 - sub: str = "" # identity + sub: str = "" # identity name: str = "" video: VideoGrants = dataclasses.field(default_factory=VideoGrants) @@ -165,7 +165,8 @@ def verify(self, token: str) -> Claims: def camel_to_snake(str): - return re.sub(r'(?