From 306217e41ff115aceba1fd7a4b4eb4242c05364e Mon Sep 17 00:00:00 2001 From: Todd Martin Date: Sun, 11 Jan 2026 11:58:51 -0500 Subject: [PATCH] Updated logout reason for lock component. --- libs/auth/src/common/types/logout-reason.type.ts | 6 ++---- .../key-management-ui/src/lock/components/lock.component.ts | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/libs/auth/src/common/types/logout-reason.type.ts b/libs/auth/src/common/types/logout-reason.type.ts index 2aa12ed2dcb..fd9da00bcf7 100644 --- a/libs/auth/src/common/types/logout-reason.type.ts +++ b/libs/auth/src/common/types/logout-reason.type.ts @@ -1,7 +1,4 @@ export type LogoutReason = - | "accessTokenUnableToBeDecrypted" - | "accountDeleted" - | "invalidAccessToken" | "accessTokenUnableToBeDecrypted" | "accountDeleted" | "invalidAccessToken" @@ -9,9 +6,10 @@ export type LogoutReason = | "keyConnectorError" | "logoutNotification" | "missingEmailError" + | "noUnlockOptionsAvailable" | "refreshTokenSecureStorageRetrievalFailure" - | "setInitialPassword" | "sessionExpired" + | "setInitialPassword" | "userInitiated" | "userKeyRotation" | "vaultTimeout"; diff --git a/libs/key-management-ui/src/lock/components/lock.component.ts b/libs/key-management-ui/src/lock/components/lock.component.ts index 2c6112a07d6..fe4dcd4bbf5 100644 --- a/libs/key-management-ui/src/lock/components/lock.component.ts +++ b/libs/key-management-ui/src/lock/components/lock.component.ts @@ -284,7 +284,7 @@ export class LockComponent implements OnInit, OnDestroy { ) { // User has no available unlock options, force logout. This happens for TDE users without a masterpassword, that don't have a persistent unlock method set. this.logService.warning("[LockComponent] User cannot unlock again. Logging out!"); - await this.logoutService.logout(activeAccount.id); + await this.logoutService.logout(activeAccount.id, "noUnlockOptionsAvailable"); return; }