This is a working example of authr using the default nedb adapter, express, and passportjs.
This example currently works with authr versions >=0.3.0
-
Clone this repo
-
Install dependencies using
npm install
-
Run the example using
node app.js
-
Visit http://localhost:8888
-
Test
The nedb, mongodb, and sql adapters are all included, so if you wish to try those, you can simply:
- Install the appropriate database (e.g., mongodb or mysql) and start it
- Edit app.js and change the configuration to use the adapter you choose
- Run app.js and run through the signup/login process