Skip to content

Commit

Permalink
add with_kind to claims (#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
timu-jesse-ezell authored Oct 1, 2024
1 parent 7295524 commit 4d212f0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions livekit-api/livekit/api/access_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ class Claims:
attributes: dict[str, str] = dataclasses.field(default_factory=dict)
metadata: str = ""
sha256: str = ""
kind: str = ""


class AccessToken:
Expand Down Expand Up @@ -117,6 +118,10 @@ def with_sip_grants(self, grants: SIPGrants) -> "AccessToken":
def with_identity(self, identity: str) -> "AccessToken":
self.identity = identity
return self

def with_kind(self, kind: str) -> "AccessToken":
self.claims.kind = kind
return self

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

0 comments on commit 4d212f0

Please sign in to comment.