fix: workspace signout all

This commit is contained in:
Mo
2022-05-17 13:47:23 -05:00
parent b3f6888683
commit abe9b70525
6 changed files with 60 additions and 39 deletions

View File

@@ -41,6 +41,12 @@ export abstract class WebOrDesktopDevice implements WebOrDesktopDeviceInterface
return this.databases.find((database) => database.databaseName === identifier) as Database
}
async clearAllDataFromDevice(): Promise<void> {
await this.clearRawKeychainValue()
await this.removeAllRawStorageValues()
await Database.deleteAll()
}
deinit() {
for (const database of this.databases) {
database.deinit()