From 1764a8bc646e241fabad2f7c25b0a2992905b6ca Mon Sep 17 00:00:00 2001 From: Rui Tome Date: Tue, 4 Feb 2025 09:33:10 +0000 Subject: [PATCH] Add comment to clarify why the identity token needs to be refreshed --- .../notifications/internal/default-notifications.service.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/common/src/platform/notifications/internal/default-notifications.service.ts b/libs/common/src/platform/notifications/internal/default-notifications.service.ts index caa3fbb4773..4bdd112658d 100644 --- a/libs/common/src/platform/notifications/internal/default-notifications.service.ts +++ b/libs/common/src/platform/notifications/internal/default-notifications.service.ts @@ -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);