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