()
| 342 | } |
| 343 | |
| 344 | func createRoomToken() string { |
| 345 | at := auth.NewAccessToken(testApiKey, testApiSecret). |
| 346 | AddGrant(&auth.VideoGrant{RoomCreate: true}) |
| 347 | t, err := at.ToJWT() |
| 348 | if err != nil { |
| 349 | panic(err) |
| 350 | } |
| 351 | return t |
| 352 | } |
| 353 | |
| 354 | func adminRoomToken(name string) string { |
| 355 | at := auth.NewAccessToken(testApiKey, testApiSecret). |
no outgoing calls