Revert "Add publish and subscribe permissions"

This reverts commit ff8709f581.
This commit is contained in:
mplorentz
2026-03-03 10:14:28 -05:00
parent ff8709f581
commit e97d1283e7
+3 -7
View File
@@ -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()