1
0
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:
addison
2021-11-10 10:16:45 -05:00
parent 3a179e0922
commit 003e07f362
3 changed files with 0 additions and 6 deletions

View File

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

View File

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

View File

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