CouchDB cookie authentication example with PouchDB
JavaScript CSS
Latest commit 2f58b00 Feb 26, 2014 @zemirco init
Permalink
Failed to load latest commit information.
public init Feb 26, 2014
views
.gitignore
README.md init Feb 26, 2014
app.js
package.json

README.md

More info at my blog

Create db cookie-auth.

CouchDB configuration:

[httpd]
enable_cors = true

[cors]
credentials = true
origins = http://localhost:3000

[couch_httpd_auth]
require_valid_user = true

Important!

Cookie name must be AuthSession. CouchDB will then automatically detect the user session.