Getting OAuthCallbackError - 422 Unprocessable Entity #6282
Replies: 2 comments 1 reply
-
UPDATEWith the help of a Steady developer, I was able to identify and resolve the issue. My [...nextauth].tsx now contains the following:
Would there be any other way to solve this issue without a custom function? Are we missing something here? |
Beta Was this translation helpful? Give feedback.
-
It looks like this issue did not receive any activity for 60 days. It will be closed in 7 days if no further activity occurs. If you think your issue is still relevant, commenting will keep it open. Thanks! |
Beta Was this translation helpful? Give feedback.
-
Question 💬
Hello,
I'm trying to implement OAuth 2.0 from a service called "Steady".
Steady developer documentation here.
Before implementing Next-Auth I tried to manually handle the OAuth flow, which worked, I received the Access Token and user information.
After that I tried to give it a go with Next-Auth (v4) and I just can't get it to work.
I enabled debug: true on Next-Auth and the authorization request seems to work properly:
The next step doesn't seem to work though and throws me this error:
I already tried many things like just passing an authorization url and token url without any params but everything pretty much ends up with the same error.
I've also tried to add a state param with a randomly generated string in it but Next-Auth seems to ignore that parameter and generates its own state anyways, according to the debug logs.
I'm absolutely sure my Client ID and my Client Secret are correct, since I've used the same variables for my manual auth flow, which worked.
Does anybody have any idea what might be the issue here?
Thank you very much in advance.
How to reproduce ☕️
My [...nextauth.ts] looks as follows:
Contributing 🙌🏽
No, I am afraid I cannot help regarding this
Beta Was this translation helpful? Give feedback.
All reactions