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";