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:
Asked
Active
Viewed 978 times
0

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