Skip to content

Commit

Permalink
Update livekit-api/livekit/api/access_token.py
Browse files Browse the repository at this point in the history
Co-authored-by: Théo Monnom <[email protected]>
  • Loading branch information
davidzhao and theomonnom authored Nov 11, 2023
1 parent ce7761e commit 7c5949b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions livekit-api/livekit/api/access_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,13 @@ class Claims:
class AccessToken:
def __init__(
self,
api_key: str = os.getenv("LIVEKIT_API_KEY"),
api_secret: str = os.getenv("LIVEKIT_API_SECRET"),
api_key: str = os.getenv("LIVEKIT_API_KEY", ""),
api_secret: str = os.getenv("LIVEKIT_API_SECRET", ""),
) -> None:
self.api_key = api_key # iss
self.api_secret = api_secret
self.claims = Claims()
if api_key is None or api_secret is None:
if not api_key or not api_secret :
raise ValueError("api_key and api_secret must be set")

# default jwt claims
Expand Down

0 comments on commit 7c5949b

Please sign in to comment.