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())).
|
SetIdentity(string(participant.Identity())).
|
||||||
SetValidFor(tokenDefaultTTL).
|
SetValidFor(tokenDefaultTTL).
|
||||||
SetMetadata(grants.Metadata).
|
SetMetadata(grants.Metadata).
|
||||||
|
SetAttributes(grants.Attributes).
|
||||||
AddGrant(grants.Video)
|
AddGrant(grants.Video)
|
||||||
jwt, err := token.ToJWT()
|
jwt, err := token.ToJWT()
|
||||||
if err == nil {
|
if err == nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user