question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Authentication fails with Error

See original GitHub issue

I have some pretty straightforward boilerplate authentication code that fails,

router.get('/auth/google',
  passport.authenticate('google', { scope: ['profile', 'email'] }));

router.get('/auth/google/return',
  passport.authenticate('google', { failureRedirect: '/' }),
  function (req, res) {
    res.redirect('/');
  });

Upon being returned to /auth/google/return I’m given a vague Error,

Error
    at /Users/apetcoff/i liek 2 progrmam/my-project/node_modules/passport-google-oauth20/lib/strategy.js:95:21
    at passBackControl (/Users/apetcoff/i liek 2 progrmam/my-project/node_modules/oauth/lib/oauth2.js:132:9)
    at IncomingMessage.<anonymous> (/Users/apetcoff/i liek 2 progrmam/my-project/node_modules/oauth/lib/oauth2.js:157:7)
    at emitNone (events.js:91:20)
    at IncomingMessage.emit (events.js:185:7)
    at endReadableNT (_stream_readable.js:974:12)
    at _combinedTickCallback (internal/process/next_tick.js:74:11)
    at process._tickDomainCallback (internal/process/next_tick.js:122:9)

Facebook and Twitter authentication both work fine.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:5
  • Comments:6

github_iconTop GitHub Comments

19reactions
devinsbacommented, Mar 4, 2017

@ughitsaaron @gittheking

You need to enable the Google+ Social API for your Google API project

4reactions
pranavQcommented, Jan 10, 2019

Google will be closing the G+ from 7th March 2019.

Read more comments on GitHub >

github_iconTop Results From Across the Web

"Authentication failed" error when you try to log on to Unified ...
This issue occurs when Unified Access Gateway cannot convert the UPN name into the Security Accounts Manager (SAM) account name format.
Read more >
Authentication Failed - The Error Explained
When attempting to send an email, your email program may report an "Authentication Failed" error message. Authentication is the act of providing a...
Read more >
Authentication Error Occurred? -10 Proven Fixes - Dr.Fone
Learn how to overcome Wifi authentication error in this extensive post. We have listed stepwise solutions to fix authentication error occurred on Android....
Read more >
Why did I Receive an Authentication Failed Error
If you did not properly log out of the system and close your browser, or if multiple users were trying to sign in...
Read more >
I get a message that says “Authentication failed”
Make sure that you are connected to the Internet, or to a local area network. · Make sure that you have registered an...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found