mirror of
https://github.com/livekit/livekit.git
synced 2026-05-18 00:25:46 +00:00
fix: ensure the participant kind is set on refresh tokens (#3881)
This commit is contained in:
@@ -1008,6 +1008,7 @@ func (r *RoomManager) refreshToken(participant types.LocalParticipant) error {
|
||||
token := auth.NewAccessToken(key, secret)
|
||||
token.SetName(grants.Name).
|
||||
SetIdentity(string(participant.Identity())).
|
||||
SetKind(grants.GetParticipantKind()).
|
||||
SetValidFor(tokenDefaultTTL).
|
||||
SetMetadata(grants.Metadata).
|
||||
SetAttributes(grants.Attributes).
|
||||
|
||||
Reference in New Issue
Block a user