Closed hitesh-c closed 5 months ago
Did you setup github config for oauth? https://next-auth.js.org/providers/github#configuration https://github.com/settings/developers
Thanks for replying,
Yes, I did. NextAuth is redirecting back to same homepage URL with query params code and state. I am not able to find out why it is not redirecting to dashboard like your deployed version. I have just started learning next.JS
Make sure to mention your callback URL in the GitHub OAuth settings. Check if you have configured it correctly with your hosted app, like this in the Authorization callback URL:
Thanks, It is solved.
Hi, I tried deploying this repository, But I am facing a error with Next Auth. My application is redirecting to this after successful Login with Github. Please help me
https://next-dashboard-pi-nine.vercel.app/?callbackUrl=https://next-dashboard-pi-nine.vercel.app/dashboard?error_description=The+redirect_uri+MUST+match+the+registered+callback+URL+for+this+application.&error_uri=https%3A%2F%2Fdocs.github.com%2Fapps%2Fmanaging-oauth-apps%2Ftroubleshooting-authorization-request-errors%2F%23redirect-uri-mismatch&state=DgW_BIG6i0ULFBuA0xEl2ArAVOAFKNbkCesB-RRLyYo&error=redirect_uri_mismatch