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>;
|
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>;
|
||||||
|
@ -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> {
|
||||||
|
Loading…
Reference in New Issue
Block a user