This commit is contained in:
2023-10-12 09:13:06 +07:00
parent 3b46e71525
commit 35650a40f2
36 changed files with 444 additions and 1447 deletions

View File

@@ -19,11 +19,13 @@ export class LumeStorage {
}
public async secureSave(value: string, key?: string) {
await invoke('secure_save', { key: this.account.pubkey ?? key, value });
return await invoke('secure_save', { key: this.account.pubkey ?? key, value });
}
public async secureLoad(key?: string) {
const value = invoke('secure_load', { key: this.account.pubkey ?? key });
const value: string = await invoke('secure_load', {
key: this.account.pubkey ?? key,
});
return value;
}