0

I'm using nextjs 12.1.6, nextauth ^4.5.0, cognito to create social sign ins. After successful sign in on the cognito Hosted UI, I get redirected to my nextjs app with this error in the url api/auth/signin?error=OAuthCallback. I'm not sure what the problem is. Here is the log I get:enter image description here

here's the nextjs app: enter image description here

My cognito callbacks: enter image description here

My nextauth config :enter image description here

ninsau
  • 518
  • 2
  • 5
  • 18
  • Please make sure to post code and errors as text directly to the question (and [not as images](https://meta.stackoverflow.com/questions/285551)), and [format them appropriately](https://stackoverflow.com/help/formatting). – juliomalves Jun 22 '22 at 14:58
  • Related GH discussion: https://github.com/nextauthjs/next-auth/discussions/3551. – juliomalves Jun 22 '22 at 15:02

0 Answers0