mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 17:23:37 +00:00
* Create state for biometric client key halves * Move enc string util to central utils * Provide biometric state through service * Use biometric state to track client key half * Create migration for client key half * Ensure client key half is removed on logout * Remove account data for client key half * Remove unnecessary key definition likes * Remove moved state from account * Fix null-conditional operator failure * Simplify migration * Remove lame test * Fix test type * Add migrator * Prefer userKey when legacy not needed * Fix tests
22 lines
555 B
TypeScript
22 lines
555 B
TypeScript
import {
|
|
Account as BaseAccount,
|
|
AccountSettings as BaseAccountSettings,
|
|
} from "@bitwarden/common/platform/models/domain/account";
|
|
|
|
export class AccountSettings extends BaseAccountSettings {
|
|
vaultTimeout = -1; // On Restart
|
|
dismissedBiometricRequirePasswordOnStartCallout?: boolean;
|
|
}
|
|
|
|
export class Account extends BaseAccount {
|
|
settings?: AccountSettings = new AccountSettings();
|
|
|
|
constructor(init: Partial<Account>) {
|
|
super(init);
|
|
Object.assign(this.settings, {
|
|
...new AccountSettings(),
|
|
...this.settings,
|
|
});
|
|
}
|
|
}
|