mirror of
https://github.com/bitwarden/jslib
synced 2025-12-23 03:33:29 +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 }>;
|
getProviders: (options?: StorageOptions) => Promise<{ [id: string]: ProviderData }>;
|
||||||
getPublicKey: (options?: StorageOptions) => Promise<ArrayBuffer>;
|
getPublicKey: (options?: StorageOptions) => Promise<ArrayBuffer>;
|
||||||
getRefreshToken: (options?: StorageOptions) => Promise<string>;
|
getRefreshToken: (options?: StorageOptions) => Promise<string>;
|
||||||
getRememberEmail: (options?: StorageOptions) => Promise<boolean>;
|
|
||||||
getRememberedEmail: (options?: StorageOptions) => Promise<string>;
|
getRememberedEmail: (options?: StorageOptions) => Promise<string>;
|
||||||
getSecurityStamp: (options?: StorageOptions) => Promise<string>;
|
getSecurityStamp: (options?: StorageOptions) => Promise<string>;
|
||||||
getSettings: (options?: StorageOptions) => Promise<any>;
|
getSettings: (options?: StorageOptions) => Promise<any>;
|
||||||
|
|||||||
@@ -97,7 +97,6 @@ export class Account {
|
|||||||
providers: { [id: string]: ProviderData };
|
providers: { [id: string]: ProviderData };
|
||||||
publicKey: ArrayBuffer;
|
publicKey: ArrayBuffer;
|
||||||
refreshToken: string;
|
refreshToken: string;
|
||||||
rememberEmail: boolean;
|
|
||||||
rememberedEmail: string;
|
rememberedEmail: string;
|
||||||
securityStamp: string;
|
securityStamp: string;
|
||||||
encryptedSends: { [id: string]: SendData };
|
encryptedSends: { [id: string]: SendData };
|
||||||
|
|||||||
@@ -436,10 +436,6 @@ export class StateService implements StateServiceAbstraction {
|
|||||||
return (await this.getAccount(this.reconcileOptions(options, this.defaultInMemoryOptions)))?.refreshToken;
|
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> {
|
async getRememberedEmail(options?: StorageOptions): Promise<string> {
|
||||||
return (await this.getGlobals(this.reconcileOptions(options, this.defaultOnDiskLocalOptions)))?.rememberedEmail;
|
return (await this.getGlobals(this.reconcileOptions(options, this.defaultOnDiskLocalOptions)))?.rememberedEmail;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user