object-detection_by_pk / livekit_token.py
Prathamesh1420's picture
Upload 2 files
c346347 verified
raw
history blame contribute delete
256 Bytes
from livekit import AccessToken
def generate_token(api_key, api_secret, identity="user", room="default"):
at = AccessToken(api_key, api_secret, identity)
at.add_grant({
"roomJoin": True,
"room": room,
})
return at.to_jwt()