From 191eec81628309dfd9f5176bfc3ac033bd2f3fcc Mon Sep 17 00:00:00 2001 From: Todd Martin Date: Sat, 22 Nov 2025 19:43:13 -0500 Subject: [PATCH] Added handling of user key rotation logout --- .../key-management/key-rotation/user-key-rotation.service.ts | 2 +- libs/auth/src/common/types/logout-reason.type.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/web/src/app/key-management/key-rotation/user-key-rotation.service.ts b/apps/web/src/app/key-management/key-rotation/user-key-rotation.service.ts index 168dbe7442e..7fdd1d57e18 100644 --- a/apps/web/src/app/key-management/key-rotation/user-key-rotation.service.ts +++ b/apps/web/src/app/key-management/key-rotation/user-key-rotation.service.ts @@ -189,7 +189,7 @@ export class UserKeyRotationService { timeout: 15000, }); - await this.logoutService.logout(user.id); + await this.logoutService.logout(user.id, "userKeyRotation"); } protected async ensureIsAllowedToRotateUserKey(): Promise { diff --git a/libs/auth/src/common/types/logout-reason.type.ts b/libs/auth/src/common/types/logout-reason.type.ts index 158869c6263..ed9ff23df00 100644 --- a/libs/auth/src/common/types/logout-reason.type.ts +++ b/libs/auth/src/common/types/logout-reason.type.ts @@ -10,4 +10,5 @@ export type LogoutReason = | "setInitialPassword" | "sessionExpired" | "userInitiated" + | "userKeyRotation" | "vaultTimeout";