forked from Crypho/cordova-plugin-secure-storage
-
Notifications
You must be signed in to change notification settings - Fork 73
Open
Description
I just realized that secure storage is asynchronous because my last declared function runs first.
How can I make it synchronous?
Like this?:
async function setConfig(){
await ss.set(
function(key) {
console.log("Set " + key);
},
function(error) {
console.log("Error " + error);
},
"config",
JSON.stringify(config)
);
}
Metadata
Metadata
Assignees
Labels
No labels