You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the passport-google-oauth library and I am trying to get the user's email after user consent. I have created an endpoint /api/v1/auth/google for the user to authorize my application. But now I encountered this InternalOAuthError.
After console.log the error message I got the following:
name: 'InternalOAuthError',
message: 'Failed to obtain request token',
oauthError:
{ statusCode: 307,
data: '<HTML>\n<HEAD>\n<TITLE>Temporary Redirect</TITLE>\n</HEAD>\n<BODY BGCOLOR="#FFFFFF" TEXT="#000000">\n<H1>Temporary Redirect</H1>\nThe document has moved <A HREF="https://accounts.google.com/OAuthGetRequestToken">here</A>.\n</BODY>\n</HTML>\n' } }
I wrote my code with reference to this example. But if people want to see the code I can paste it here.
Thanks in advance for the help.
The text was updated successfully, but these errors were encountered:
I am getting the same error. In the debugging session I can see that this response is received when posting data POST /accounts/OAuthGetRequestToken HTTP/1.1.
I looked up the location where that URL is used and looks like I can change it in options:
I am using the passport-google-oauth library and I am trying to get the user's email after user consent. I have created an endpoint
/api/v1/auth/google
for the user to authorize my application. But now I encountered this InternalOAuthError.After console.log the error message I got the following:
I wrote my code with reference to this example. But if people want to see the code I can paste it here.
Thanks in advance for the help.
The text was updated successfully, but these errors were encountered: