unable to send user data to callbackurl #816
Unanswered
sumanthreddy-a
asked this question in
Help
Replies: 1 comment
-
Maybe it will help you? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
expressjs 4.0
nodejs 10
passportjs 0.4
passport-facebook 3.0
passport-google-oauth2
passport.use(new GoogleStrategy({
clientID: config.google.clientID,
clientSecret: config.google.clientSecret,
callbackURL: config.google.callbackURL,
scope: ['profile', 'email'],
passReqToCallback: true
},
async function (request, accessToken, refreshToken, profile, done) {
try {
//user create or check
}catch(err){}})
//callback url
router.get('/google/callback',
passport.authenticate('google', {
session: false,
successRedirect:
${config.google.successRedirect}
,failureRedirect: config.google.failureRedirect,
})
)
unable to send user data to callback URL
can anyone help me out this
Beta Was this translation helpful? Give feedback.
All reactions