One database per user security
I develop an app with Ionic where each user got its own PouchDB database synchronise with its own remote CouchDB database. I use couch_peruser=true so any user that want to access its database need to authenticate. This system is easy to do if we store the username & password locally or if we ask the user to give them anytime a sync is needed but none of these options are good (security concern or non user-friendly). I came with those two options, but none is working: 1) The best option that came to me was to use Cookie Authentication , just save the token locally and use it, but unfortunately