Skip to content

Boilerplate app with social auth in Node.js. Uses express, passport, mongo.

Notifications You must be signed in to change notification settings

nikolaydyankov/node-social-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-social-auth

This is a boilerplate Node.js app, which provides simple authentication with Facebook, Twitter and Google. It uses Express, Passport and MongoDB for storing sessions.

How to setup

Install dependencies:

npm install

Configue social login in config/auth.js:

module.exports = {
    'facebookAuth' : {
        clientID: '',
        clientSecret: '',
        callbackURL: ''
    },
    'twitterAuth' : {
        consumerKey: '',
        consumerSecret: '',
        callbackURL: ''
    },
    'googleAuth' : {
        clientID: '',
        clientSecret: '',
        returnURL: ''
    }
};

Configue Mongo from config/database.js:

module.exports = {
    'url' : ''
}

About

Boilerplate app with social auth in Node.js. Uses express, passport, mongo.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published