MCPcopy
hub / github.com/livekit/livekit / adminRoomToken

Function adminRoomToken

test/integration_helpers.go:354–362  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

352}
353
354func adminRoomToken(name string) string {
355 at := auth.NewAccessToken(testApiKey, testApiSecret).
356 AddGrant(&auth.VideoGrant{RoomAdmin: true, Room: name})
357 t, err := at.ToJWT()
358 if err != nil {
359 panic(err)
360 }
361 return t
362}
363
364func listRoomToken() string {
365 at := auth.NewAccessToken(testApiKey, testApiSecret).

Calls

no outgoing calls