fix: ensure the participant kind is set on refresh tokens (#3881)

This commit is contained in:
David Zhao
2025-08-26 10:25:25 -07:00
committed by GitHub
parent 8d270e2a0f
commit bfe98eaa09
+1
View File
@@ -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).