Skip to content

burawi/tayr-passport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

it uses md5

Usage

var tayrPassport = require('./tayr-passport');

var passport = tayrPassport.use({
    app: app, // Required
    T: T, // Required
    secret: 'secret',
    usernameField: 'email',
    loginSrategyName: 'login',
    usersTable: 'user',
    socials: {
        facebook: {
            clientID: "CLIENTID",
            clientSecret: "CLIENTSECRET",
            callbackURL: "http://www.example.com/callback",
        },
        google: {
            clientID: "CLIENTID",
            clientSecret: "CLIENTSECRET",
            callbackURL: "http://www.example.com/callback",
        },
        twitter: {
            consumerKey: "CONSUMERKEY",
            consumerSecret: "CONSUMERSECRET",
            callbackURL: "http://www.example.com/callback",
        }
    },
    onCreateSocials: function (profile) {
        return {
            username: profile.displayName,
            register_date: new Date(),
            role: 'normal'
        }
    }
});

About

passport settings using tayr and express

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published