Answers for "oauth twitter"

0

oauth twitter

app.get('/auth/twitter',
  passport.authenticate('twitter'));

app.get('/auth/twitter/callback', 
  passport.authenticate('twitter', { failureRedirect: '/login' }),
  function(req, res) {
    // Successful authentication, redirect home.
    res.redirect('/');
  });
Posted by: Guest on May-11-2021

Browse Popular Code Answers by Language