Express authentication using Redis for session store and Couchdb for database (in coffeescript!)
✓ Published0🌍 Public
Aanatolyg
Last edited Oct 29, 2010
Created on Nov 12, 2011
This example shows a complete Express authentication system that uses Redis as a session store and CouchDB as the user database, with CoffeeScript as the implementation language. The code demonstrates session management with `req.session.regenerate()` and `req.session.destroy()`, password hashing via `hash.sha1`, and CSRF protection through the `csrf.check()` middleware. Routes for login, signup, dashboard, and logout interact with the CouchDB client through `db.getDoc` and `db.saveDoc`, while the fugue library handles multi-process server startup.
AI-generated description