MCPcopy
hub / github.com/livekit/livekit / createRoomToken

Function createRoomToken

test/integration_helpers.go:344–352  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

342}
343
344func 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
354func adminRoomToken(name string) string {
355 at := auth.NewAccessToken(testApiKey, testApiSecret).

Callers 8

TestAgentNamespacesFunction · 0.85
scenarioJoinClosedRoomFunction · 0.85
closeNonRTCRoomFunction · 0.85
roomServiceListRoomFunction · 0.85
TestMultiNodeRoutingFunction · 0.85
TestAutoCreateFunction · 0.85

Calls

no outgoing calls

Tested by 5

TestAgentNamespacesFunction · 0.68
TestMultiNodeRoutingFunction · 0.68
TestAutoCreateFunction · 0.68