Update module github.com/livekit/server-sdk-go/v2 to v2.4.0 (#41)

* Update module github.com/livekit/server-sdk-go/v2 to v2.4.0

* use SetVideoGrant instead of deprecated AddGrant

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fkwp <fkwp@users.noreply.github.com>
This commit is contained in:
renovate[bot]
2024-12-04 09:20:20 +01:00
committed by GitHub
parent 5200d60dd1
commit 96cb277615
3 changed files with 143 additions and 31 deletions

View File

@@ -222,7 +222,7 @@ func getJoinToken(apiKey, apiSecret, room, identity string) (string, error) {
Room: room,
}
at.AddGrant(grant).
at.SetVideoGrant(grant).
SetIdentity(identity).
SetValidFor(time.Hour)