fix: copy attributes to refresh token (#3036)
otherwise they will be missing on a full reconnect
This commit is contained in:
@@ -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