fix: copy attributes to refresh token (#3036)

otherwise they will be missing on a full reconnect
This commit is contained in:
holzgeist authored and GitHub committed 2024-09-23 08:31:21 -07:00
1 parent d26ade0076
commit 9b277803c6
1 file changed
+1
+1
View File
@@ -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 {