mirror of
https://github.com/bitwarden/browser
synced 2026-02-08 12:40:26 +00:00
Updated logout reason for lock component.
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user