Skip to content

Commit 4d212f0

Browse files
add with_kind to claims (#263)
1 parent 7295524 commit 4d212f0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

livekit-api/livekit/api/access_token.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ class Claims:
8080
attributes: dict[str, str] = dataclasses.field(default_factory=dict)
8181
metadata: str = ""
8282
sha256: str = ""
83+
kind: str = ""
8384

8485

8586
class AccessToken:
@@ -117,6 +118,10 @@ def with_sip_grants(self, grants: SIPGrants) -> "AccessToken":
117118
def with_identity(self, identity: str) -> "AccessToken":
118119
self.identity = identity
119120
return self
121+
122+
def with_kind(self, kind: str) -> "AccessToken":
123+
self.claims.kind = kind
124+
return self
120125

121126
def with_name(self, name: str) -> "AccessToken":
122127
self.claims.name = name

0 commit comments

Comments
 (0)