1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-29 12:55:21 +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>; setDuckDuckGoSharedKey: (value: string, options?: StorageOptions) => Promise<void>;
getDeviceKey: (options?: StorageOptions) => Promise<DeviceKey | null>; getDeviceKey: (options?: StorageOptions) => Promise<DeviceKey | null>;
setDeviceKey: (value: DeviceKey, options?: StorageOptions) => Promise<void>; setDeviceKey: (value: DeviceKey, options?: StorageOptions) => Promise<void>;
getUserDecryptionOptions: (options?: StorageOptions) => Promise<AccountDecryptionOptions | null>; getAcctDecryptionOptions: (options?: StorageOptions) => Promise<AccountDecryptionOptions | null>;
setUserDecryptionOptions: ( setAcctDecryptionOptions: (
value: AccountDecryptionOptions, value: AccountDecryptionOptions,
options?: StorageOptions options?: StorageOptions
) => Promise<void>; ) => Promise<void>;

View File

@ -1081,7 +1081,7 @@ export class StateService<
await this.saveAccount(account, options); await this.saveAccount(account, options);
} }
async getUserDecryptionOptions( async getAcctDecryptionOptions(
options?: StorageOptions options?: StorageOptions
): Promise<AccountDecryptionOptions | null> { ): Promise<AccountDecryptionOptions | null> {
options = this.reconcileOptions(options, await this.defaultInMemoryOptions()); options = this.reconcileOptions(options, await this.defaultInMemoryOptions());
@ -1095,7 +1095,7 @@ export class StateService<
return account?.decryptionOptions as AccountDecryptionOptions; return account?.decryptionOptions as AccountDecryptionOptions;
} }
async setUserDecryptionOptions( async setAcctDecryptionOptions(
value: AccountDecryptionOptions, value: AccountDecryptionOptions,
options?: StorageOptions options?: StorageOptions
): Promise<void> { ): Promise<void> {