I use the PouchDB-authentication plugin and I like it.
However, I got a little confused during the registration process and may not be using it correctly. I use it to create new users in my CouchDB database, but I do not understand why it is associated with a specific database? Since I am creating a CouchDB user in front of his specific database, I have to use a dummy database to create a new user:
// Create or get a database on the CouchDB server to further create a new user
var remoteDB = new PouchDB('http://169.254.197.198:5984/dummy');
// Signup to this db in order to create new user in the CouchDB server
remoteDB.signUp(document.register.username.value,
document.register.password1.value).then(function (reponse){
}).then(function (reponse) {
// handle response
}).catch(function (error) {
// handle error
});
Question : Is there a way to create new users regardless of the database?
source
share