From e97d1283e7e5996a3f606544c1570531b61fef1e Mon Sep 17 00:00:00 2001 From: mplorentz Date: Tue, 3 Mar 2026 10:14:28 -0500 Subject: [PATCH] Revert "Add publish and subscribe permissions" This reverts commit ff8709f5810c625c567bb425b783ae36db78661f. --- zooid/livekit.go | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/zooid/livekit.go b/zooid/livekit.go index 73edb10..2c5bd95 100644 --- a/zooid/livekit.go +++ b/zooid/livekit.go @@ -24,15 +24,11 @@ type TokenEndpointResponse struct { } func generateLivekitToken(apiKey, apiSecret, room string, pubkey nostr.PubKey) string { - grant := &auth.VideoGrant{ + at := auth.NewAccessToken(apiKey, apiSecret) + at.SetVideoGrant(&auth.VideoGrant{ RoomJoin: true, Room: room, - } - grant.SetCanPublish(true) - grant.SetCanSubscribe(true) - - at := auth.NewAccessToken(apiKey, apiSecret) - at.SetVideoGrant(grant) + }) at.SetIdentity(pubkey.Hex()) jwt, _ := at.ToJWT()