-
-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
InternalOAuthError: failed to fetch user profile #24
Comments
Did you set the "profile" scope in the strategy options? If you don't want the full user profile, you can alternatively set options.skipUserProfile to true to prevent this error. |
+1 the same error. I enabled Google+ API too. |
I got:
|
did anyone ever figure out how to fix this? |
using these scopes fixed my error:
|
I am new to this, where to implement this please? |
I have the same things going on |
Hi @zulfikar4568 , by any chance did you manage to find a solution for this problem ? |
It seems that updating node version fixed the issue. |
using this userProfileURL: "https://www.googleapis.com/oauth2/v3/userinfo" solved my problem as google plus api is now deprecated |
Hey, could you please explain exactly to which version we have to update? I am seeing the same error. |
Hey, did anyone find the solution to this problem? Above things not working for me. I am using passport-google-oauth20 - version 2 |
Thanks, man! It worked. |
If anyone got the answer of the problem, please help... |
Have you tried the two solutions in this thread ?
On Wed, 9 Aug 2023 at 14:30, Ashish Kumar ***@***.***> wrote:
If anyone got the answer of the problem, please help...
—
Reply to this email directly, view it on GitHub
<#24 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAU4E6OWRK5S57IZ7LIQDDXUOGITANCNFSM4DGTUVLQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
Aaron Gray - @***@***.***
Independent Open Source Software Engineer, Computer Language Researcher,
Information Theorist, and Computer Scientist.
|
I also faced this problem today. For my case: cleaned node_modules, install node 18.17 LTS and reinstall all packages solved it. |
Thanks for your support, I have mistakenly done a typo error 😅 .
…On Wed, Aug 9, 2023, 9:34 PM minhhn2910 ***@***.***> wrote:
I also faced this problem today. For my case: cleaned node_modules,
install node 18.17 LTS and reinstall all packages solved it.
—
Reply to this email directly, view it on GitHub
<#24 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A7WA2YQGGTYAWMN6MQEMAVDXUOYJFANCNFSM4DGTUVLQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
add "openid" in scope, it will work passport.use(new LinkedinStrategy({ }, |
Thanks, it Worked... |
Using both https://github.com/mjhea0/passport-examples and https://github.com/barberboy/passport-google-oauth2-example I am getting the following error :-
InternalOAuthError: failed to fetch user profile
at C:\Users\aaron\Tests\JavaScript\Facebook\passport-examples\node_modules\passport-google-oauth2\lib\oauth2.js:92:28
at passBackControl (C:\Users\aaron\Tests\JavaScript\Facebook\passport-examples\node_modules\oauth\lib\oauth2.js:132:9)
at IncomingMessage. (C:\Users\aaron\Tests\JavaScript\Facebook\passport-examples\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._tickCallback (internal/process/next_tick.js:98:9)
The text was updated successfully, but these errors were encountered: