Open InesBorgesCore opened 3 years ago
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) ); }
I just realized that secure storage is asynchronous because my last declared function runs first. How can I make it synchronous?
Like this?: