mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-26 12:25:20 +01:00
PM-1049 - StateService - replace User with Acct for decryption options
This commit is contained in:
parent
07bbe96f86
commit
bf07fdb001
@ -169,8 +169,8 @@ export abstract class StateService<T extends Account = Account> {
|
||||
setDuckDuckGoSharedKey: (value: string, options?: StorageOptions) => Promise<void>;
|
||||
getDeviceKey: (options?: StorageOptions) => Promise<DeviceKey | null>;
|
||||
setDeviceKey: (value: DeviceKey, options?: StorageOptions) => Promise<void>;
|
||||
getUserDecryptionOptions: (options?: StorageOptions) => Promise<AccountDecryptionOptions | null>;
|
||||
setUserDecryptionOptions: (
|
||||
getAcctDecryptionOptions: (options?: StorageOptions) => Promise<AccountDecryptionOptions | null>;
|
||||
setAcctDecryptionOptions: (
|
||||
value: AccountDecryptionOptions,
|
||||
options?: StorageOptions
|
||||
) => Promise<void>;
|
||||
|
@ -1081,7 +1081,7 @@ export class StateService<
|
||||
await this.saveAccount(account, options);
|
||||
}
|
||||
|
||||
async getUserDecryptionOptions(
|
||||
async getAcctDecryptionOptions(
|
||||
options?: StorageOptions
|
||||
): Promise<AccountDecryptionOptions | null> {
|
||||
options = this.reconcileOptions(options, await this.defaultInMemoryOptions());
|
||||
@ -1095,7 +1095,7 @@ export class StateService<
|
||||
return account?.decryptionOptions as AccountDecryptionOptions;
|
||||
}
|
||||
|
||||
async setUserDecryptionOptions(
|
||||
async setAcctDecryptionOptions(
|
||||
value: AccountDecryptionOptions,
|
||||
options?: StorageOptions
|
||||
): Promise<void> {
|
||||
|
Loading…
Reference in New Issue
Block a user