Package Exports
- passport-universal-auth
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (passport-universal-auth) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
passport-universal-auth
#usage
let authSettings = {
twitter: {
clientID: "jFh",
clientSecret: "kz",
callbackURL: "http://localhost:30001/auth/twitter/callback",
authMeth: function(accessToken, refreshToken, profile, done) {
return done(null, profile);
},
route: "/auth/twitter",
callback: "/auth/twitter/callback",
failureRedirect: "/",
successRoute: function(req, res) {
res.redirect('/');
}
},
linkedin: {
clientID: "86",
clientSecret: "fE",
callbackURL: "http://localhost:30001/auth/linkedin/callback",
authMeth: function(accessToken, refreshToken, profile, done) {
return done(null, profile);
},
route: "/auth/linkedin",
callback: "/auth/linkedin/callback",
failureRedirect: "/",
successRoute: function(req, res) {
res.redirect('/');
}
},
localSignup:{
usernameField : 'email',
passwordField : 'password',
passReqToCallback : true,
authMeth: function(accessToken, refreshToken, profile, done) {
return done(null, profile);
}
},
localLogin:{
usernameField : 'email',
passwordField : 'password',
passReqToCallback : true,
authMeth: function(accessToken, refreshToken, profile, done) {
return done(null, profile);
},
successRedirect: "/"
}
}