1
0
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:
Jared Snider 2023-06-07 10:14:37 -04:00
parent 07bbe96f86
commit bf07fdb001
No known key found for this signature in database
GPG Key ID: A149DDD612516286
2 changed files with 4 additions and 4 deletions

View File

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

View File

@ -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> {