(name string)
| 352 | } |
| 353 | |
| 354 | func 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 | |
| 364 | func listRoomToken() string { |
| 365 | at := auth.NewAccessToken(testApiKey, testApiSecret). |
no outgoing calls