From 9b277803c6f902170100ad303c034287f6a10c07 Mon Sep 17 00:00:00 2001 From: holzgeist Date: Mon, 23 Sep 2024 17:31:21 +0200 Subject: [PATCH] fix: copy attributes to refresh token (#3036) otherwise they will be missing on a full reconnect --- pkg/service/roommanager.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/service/roommanager.go b/pkg/service/roommanager.go index 96283510d..fe9c9144c 100644 --- a/pkg/service/roommanager.go +++ b/pkg/service/roommanager.go @@ -993,6 +993,7 @@ func (r *RoomManager) refreshToken(participant types.LocalParticipant) error { SetIdentity(string(participant.Identity())). SetValidFor(tokenDefaultTTL). SetMetadata(grants.Metadata). + SetAttributes(grants.Attributes). AddGrant(grants.Video) jwt, err := token.ToJWT() if err == nil {