Skip to content

Commit

Permalink
dotnet: fix token parameters types with ToString()
Browse files Browse the repository at this point in the history
  • Loading branch information
pabloFuente committed Dec 13, 2024
1 parent cecc892 commit 5e2a891
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions application-server/dotnet/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand Down

0 comments on commit 5e2a891

Please sign in to comment.