Skip to content

Commit 7d775cf

Browse files
committed
add update metadata permission to token
1 parent 8c2fd1c commit 7d775cf

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

examples/python/so101/_common.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,11 @@ def mint_token(identity: str, room: str) -> str:
4242
key = required_env("LIVEKIT_API_KEY")
4343
secret = required_env("LIVEKIT_API_SECRET")
4444
grants = api.VideoGrants(
45-
room_join=True, room=room, can_publish=True, can_subscribe=True
45+
room_join=True,
46+
room=room,
47+
can_publish=True,
48+
can_subscribe=True,
49+
can_update_own_metadata=True,
4650
)
4751
room_cfg = RoomConfiguration(name=room, min_playout_delay=0, max_playout_delay=1)
4852
return (

0 commit comments

Comments
 (0)