JWT token based auth

This commit is contained in:
David Zhao
2020-12-25 22:31:11 -08:00
parent 8f34bd6086
commit 804b7cb332
33 changed files with 1169 additions and 194 deletions
+2 -2
View File
@@ -62,7 +62,7 @@ func createRoom(c *cli.Context) error {
func getRoom(c *cli.Context) error {
roomId := c.String("room-id")
room, err := roomClient.GetRoom(context.Background(), &livekit.GetRoomRequest{
RoomId: roomId,
Room: roomId,
})
if err != nil {
return err
@@ -75,7 +75,7 @@ func getRoom(c *cli.Context) error {
func deleteRoom(c *cli.Context) error {
roomId := c.String("room-id")
_, err := roomClient.DeleteRoom(context.Background(), &livekit.DeleteRoomRequest{
RoomId: roomId,
Room: roomId,
})
if err != nil {
return err