I'm currently working on an offline-first mobile application. I'm using PouchDB and an CouchDB remote server.
I've used the login and create user functions from: https://github.com/nolanlawson/pouchdb-authentication
What I want to achieve is, to save the users username and password (if the 'remember me' option is selected). so when you restart your mobile device and open the app, it opens logged in to your account rather then having to login again. (a bit like facebook/twitter app).
Is there anyone who can help me achieve this? I'm open for all little bits of help/knowledge!