This is is a quick project I made for me to better understand how authentication / authorization with local, Facebook and Google accounts. This serves as a good starting point for any developer that wish to build website that allows users to login from different social accounts.
Project is built on node.js/express with passport modules.
- Install node.js and npm
$ git clone https://github.com/ednunezg/oauth-example
- Install dependencies
$ npm install
- Use the Google and Facebook developer pages to create a new app to be used for OAuth 2 authorization.
- Rename "app-config-SAMPLE.js" to "app-config.js" and insert your Facebook and Google app id and secret.
- Start app
$ nodemon app
- Go to http://localhost:3000