diff --git a/common/src/abstractions/state.service.ts b/common/src/abstractions/state.service.ts index ec63f140..3cbdd594 100644 --- a/common/src/abstractions/state.service.ts +++ b/common/src/abstractions/state.service.ts @@ -29,7 +29,7 @@ export abstract class StateService { addAccount: (account: Account) => Promise; setActiveUser: (userId: string) => Promise; - purge: (options?: StorageOptions) => Promise; + clean: (options?: StorageOptions) => Promise; getAccessToken: (options?: StorageOptions) => Promise; setAccessToken: (value: string, options?: StorageOptions) => Promise; diff --git a/common/src/services/state.service.ts b/common/src/services/state.service.ts index 73ccce55..aabbdab1 100644 --- a/common/src/services/state.service.ts +++ b/common/src/services/state.service.ts @@ -76,7 +76,7 @@ export class StateService implements StateServiceAbstraction { await this.pushAccounts(); } - async purge(options?: StorageOptions): Promise { + async clean(options?: StorageOptions): Promise { await this.secureStorageService.remove(options?.userId ?? this.state.activeUserId); await this.storageService.remove(options?.userId ?? this.state.activeUserId); delete this.state.accounts[options?.userId ?? this.state.activeUserId];