Skip to content
CouchDB cookie authentication example with PouchDB
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
public
views
.gitignore
README.md
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.

You can’t perform that action at this time.