1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-13 06:54:07 +00:00

Add comment to clarify why the identity token needs to be refreshed

This commit is contained in:
Rui Tome
2025-02-04 09:33:10 +00:00
parent 9f6ecfbbf2
commit 1764a8bc64

View File

@@ -188,6 +188,7 @@ export class DefaultNotificationsService implements NotificationsServiceAbstract
break;
case NotificationType.SyncOrgKeys:
if (await this.configService.getFeatureFlag(FeatureFlag.PushSyncOrgKeysOnRevokeRestore)) {
// Refresh the identity token to ensure organization roles in JWT claims are up-to-date
await this.apiService.refreshIdentityToken();
}
await this.syncService.fullSync(true);