Cannot retrieve access_token after succesfully authorization #11753
-
Hello, I'm trying to implement next-auth in my application with a custom oauth provider. When I call the signIn function, I am normally redirected to the page for authorizing external authentication and then immediately afterwards I am redirected to the redirect URL. However, it is not exchanging the This is my
Ps: console.log inside the token request is not logging somehow. This is my
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Turns out i was using a wrong redirect uri on the platform service. |
Beta Was this translation helpful? Give feedback.
Turns out i was using a wrong redirect uri on the platform service.
I was using something like
http://localhost:3000/dashboard
instead ofhttp://localhost:3000/api/auth/callback/${PROVIDER ID}
.