calvinmetcalf / crypto-pouch

plugin for encrypted pouchdb/couchdb databases
MIT License
243 stars 43 forks source link

Fix issue where the key is set in the options #71

Closed tahpot closed 3 years ago

tahpot commented 5 years ago

If you attempt to load a pouchdb instance with a key that has been stored separately, it's possible there is no '_local/crypto' document which breaks everything.

This fix ensures that document is always created.

tahpot commented 3 years ago

Closing as it's no longer relevant due to the refactor.