Issue with authentication

67 views
Skip to first unread message

Sudhanshu Sharma

unread,
Jan 8, 2024, 8:09:30 AM1/8/24
to Google Ads API and AdWords API Forum
[next-auth][error][OAUTH_CALLBACK_ERROR]
https://next-auth.js.org/errors#oauth_callback_error invalid_grant (Bad Request) {
  error: OPError: invalid_grant (Bad Request)
      at processResponse (webpack-internal:///(rsc)/./node_modules/openid-client/lib/helpers/process_response.js:34:19)
      at Client.grant (webpack-internal:///(rsc)/./node_modules/openid-client/lib/client.js:1206:28)
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
      at async Client.callback (webpack-internal:///(rsc)/./node_modules/openid-client/lib/client.js:418:30)
      at async oAuthCallback (webpack-internal:///(rsc)/./node_modules/next-auth/core/lib/oauth/callback.js:118:22)
      at async Object.callback (webpack-internal:///(rsc)/./node_modules/next-auth/core/routes/callback.js:18:79)
      at async AuthHandler (webpack-internal:///(rsc)/./node_modules/next-auth/core/index.js:202:38)
      at async NextAuthRouteHandler (webpack-internal:///(rsc)/./node_modules/next-auth/next/index.js:50:30)
      at async NextAuth._args$ (webpack-internal:///(rsc)/./node_modules/next-auth/next/index.js:85:24)
      at async C:\Users\sudha\OneDrive\Desktop\Portfolio\PortFolio Projects\feedback-board\node_modules\next\dist\compiled\next-server\app-route.runtime.dev.js:6:63251 {
    name: 'OAuthCallbackError',
    code: undefined
  },
  providerId: 'google',
  message: 'invalid_grant (Bad Request)'
}

Google Ads API Forum Advisor

unread,
Jan 8, 2024, 11:01:19 AM1/8/24
to sudhanshu...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to the Google Ads API support team.

After reviewing your query, I understand that you are getting OAUTH_CALLBACK_ERROR. Could you please confirm if you are using Google Ads API? If yes, I would kindly request you to provide us with the complete API logs (request and response with request-id and request header) generated at your end along with the uncropped UI screenshot (with a visible customer Id) to better assist you on this request. 

If you are using a client library and haven't enabled the logging yet, I would request you to enable logging for the specific client library that you are using. You can refer to the guides Java, .Net, PHP, Python, Ruby or Perl to enable logging at your end. For REST interface requests, you can enable logging via the curl command by using the -i flag.

You can send the details via Reply privately to the author option, or direct private reply to this email.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02rVExf:ref"

Thanks,
 
Google Logo Google Ads API Team

 

Reply all
Reply to author
Forward
0 new messages