fix: ensure the participant kind is set on refresh tokens (#3881)
This commit is contained in:
@@ -1008,6 +1008,7 @@ func (r *RoomManager) refreshToken(participant types.LocalParticipant) error {
|
|||||||
token := auth.NewAccessToken(key, secret)
|
token := auth.NewAccessToken(key, secret)
|
||||||
token.SetName(grants.Name).
|
token.SetName(grants.Name).
|
||||||
SetIdentity(string(participant.Identity())).
|
SetIdentity(string(participant.Identity())).
|
||||||
|
SetKind(grants.GetParticipantKind()).
|
||||||
SetValidFor(tokenDefaultTTL).
|
SetValidFor(tokenDefaultTTL).
|
||||||
SetMetadata(grants.Metadata).
|
SetMetadata(grants.Metadata).
|
||||||
SetAttributes(grants.Attributes).
|
SetAttributes(grants.Attributes).
|
||||||
|
|||||||
Reference in New Issue
Block a user