From 5e2a8912500677b4cbc64055d80979b4fd5af332 Mon Sep 17 00:00:00 2001 From: pabloFuente Date: Fri, 13 Dec 2024 15:17:27 +0100 Subject: [PATCH] dotnet: fix token parameters types with ToString() --- application-server/dotnet/Program.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/application-server/dotnet/Program.cs b/application-server/dotnet/Program.cs index 2190e476..102125df 100644 --- a/application-server/dotnet/Program.cs +++ b/application-server/dotnet/Program.cs @@ -51,9 +51,9 @@ ) { var token = new AccessToken(LIVEKIT_API_KEY, LIVEKIT_API_SECRET) - .WithIdentity(participantName) - .WithName(participantName) - .WithGrants(new VideoGrants { RoomJoin = true, Room = roomName }); + .WithIdentity(participantName.ToString()) + .WithName(participantName.ToString()) + .WithGrants(new VideoGrants { RoomJoin = true, Room = roomName.ToString() }); var jwt = token.ToJwt(); return Results.Json(new { token = jwt });