dotnet: fix token parameters types with ToString()
This commit is contained in:
parent
cecc89238d
commit
5e2a891250
@ -51,9 +51,9 @@ app.MapPost(
|
||||
)
|
||||
{
|
||||
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 });
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user