mirror of
https://github.com/livekit/livekit.git
synced 2026-10-23 08:42:46 +00:00
fix: copy attributes to refresh token (#3036)
otherwise they will be missing on a full reconnect
This commit is contained in:
1 parent
d26ade0076
commit
9b277803c6
1 file changed
+1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user