mirror of
https://github.com/bitwarden/jslib
synced 2025-12-22 19:23:24 +00:00
[refactor] Remove RememberEmail from state
This commit is contained in:
@@ -127,7 +127,6 @@ export abstract class StateService {
|
||||
getProviders: (options?: StorageOptions) => Promise<{ [id: string]: ProviderData }>;
|
||||
getPublicKey: (options?: StorageOptions) => Promise<ArrayBuffer>;
|
||||
getRefreshToken: (options?: StorageOptions) => Promise<string>;
|
||||
getRememberEmail: (options?: StorageOptions) => Promise<boolean>;
|
||||
getRememberedEmail: (options?: StorageOptions) => Promise<string>;
|
||||
getSecurityStamp: (options?: StorageOptions) => Promise<string>;
|
||||
getSettings: (options?: StorageOptions) => Promise<any>;
|
||||
|
||||
@@ -97,7 +97,6 @@ export class Account {
|
||||
providers: { [id: string]: ProviderData };
|
||||
publicKey: ArrayBuffer;
|
||||
refreshToken: string;
|
||||
rememberEmail: boolean;
|
||||
rememberedEmail: string;
|
||||
securityStamp: string;
|
||||
encryptedSends: { [id: string]: SendData };
|
||||
|
||||
@@ -436,10 +436,6 @@ export class StateService implements StateServiceAbstraction {
|
||||
return (await this.getAccount(this.reconcileOptions(options, this.defaultInMemoryOptions)))?.refreshToken;
|
||||
}
|
||||
|
||||
async getRememberEmail(options?: StorageOptions): Promise<boolean> {
|
||||
return (await this.getGlobals(this.reconcileOptions(options, this.defaultOnDiskLocalOptions)))?.rememberEmail ?? false;
|
||||
}
|
||||
|
||||
async getRememberedEmail(options?: StorageOptions): Promise<string> {
|
||||
return (await this.getGlobals(this.reconcileOptions(options, this.defaultOnDiskLocalOptions)))?.rememberedEmail;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user