Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public static async clear() {
await storage.init();
await storage.clear();
}
}
return new Promise((resolve) => {
PersistStorage.clear()
.then(() => resolve(true))
.catch(() => resolve(false));
});
} catch(error) {