wip
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user