Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
this.db.close(function() {
Pouch.destroy(name, callback);
})
}
PouchStore.prototype.clear = function(callback) {
if (!callback) {
throw new Error('TokenStore:clear called with invalid parameters');
}
PouchDB.destroy(this.DB_NAME, (function() {
this.db = null;
callback();
}).bind(this));
}