An open API service indexing awesome lists of open source software.

https://github.com/connor11528/express-auth

node.js authentication
https://github.com/connor11528/express-auth

Last synced: 11 months ago
JSON representation

node.js authentication

Awesome Lists containing this project

README

          

Authentication with node.js
===========

Login with email/password, facebook and spotify. Link and unlink accounts. Login with multiple providers to the same account.

Technologies used: mongodb, mongoose, express, ejs, passportjs

# Getting started

**config/auth.js** should look something like this:

```
module.exports ={
"facebookAuth": {
"clientID": client_id
"clientSecret": secret_id
"callbackURL": "http://localhost:3000/auth/facebook/callback"
},
"spotifyAuth": {
"clientID": client_id,
"clientSecret": secret_id,
"callbackURL": "http://localhost:3000/auth/spotify/callback"
}
};
```

Install dependencies and run server:

```
$ npm install
$ node server
```