This commit is contained in:
2023-10-18 14:49:20 +07:00
parent 489ab6bd0b
commit 939a72f945
47 changed files with 389 additions and 293 deletions

View File

@@ -22,12 +22,16 @@ export class LumeStorage {
return await invoke('secure_save', { key, value });
}
public async secureLoad(key?: string) {
public async secureLoad(key: string) {
const value: string = await invoke('secure_load', { key });
if (!value) return null;
return value;
}
public async secureRemove(key: string) {
return await invoke('secure_remove', { key });
}
public async checkAccount() {
const result: Array<{ total: string }> = await this.db.select(
'SELECT COUNT(*) AS "total" FROM accounts;'