diff --git a/.changeset/thick-lamps-tease.md b/.changeset/thick-lamps-tease.md new file mode 100644 index 000000000..23e788b77 --- /dev/null +++ b/.changeset/thick-lamps-tease.md @@ -0,0 +1,5 @@ +--- +"github.com/livekit/protocol": patch +--- + +Use consistent json field name for room configuration grant diff --git a/auth/grants.go b/auth/grants.go index 6a8a43308..b7fb58a05 100644 --- a/auth/grants.go +++ b/auth/grants.go @@ -34,7 +34,7 @@ type VideoGrant struct { RoomJoin bool `json:"roomJoin,omitempty"` Room string `json:"room,omitempty"` // Name of the room configuration to apply to the room if created - RoomConfiguration string `json:"room_configuration,omitempty"` + RoomConfiguration string `json:"roomConfiguration,omitempty"` // permissions within a room, if none of the permissions are set explicitly // it will be granted with all publish and subscribe permissions