I'm using the PouchDB library on web & react-native.
I'm building a login system (login & sign up - already working), but I'm missing an important function:
Forgot my password!
How can I set a new password using Node.JS -> Nano & CouchDB?
I'm using the _users table on CouchDB. With this library: https://github.com/pouchdb-community/pouchdb-authentication I can login and register with no problems. Such a library does not provide a way to make a function on how to set password. You log in, register (which's just add a document on CouchDB), and the password gets encoded with SHA-256 salt.
So, it gets me wondering, how can I later change that password on CouchDB? Where should I put that information in CouchDB?
Any help to this problem it's higly appreciated.