You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to authorize using the authorization endpoint with some parameters, but I keep getting an error that says "State cookie was missing". After looking into it, I realized that the data is being returned in Form Data mode instead of a query string, which is causing issues with parsing.
Unfortunately, the OAuth provider restricts the data to be returned only in "form_post" method during the callback, and I'm not sure what to do. Is there any way to resolve this issue or convert the formData to a query string during the callback process?
I have provided the NextAuth config down as below.
Quick note. NEXT_PUBLIC_CLIENT_SECRET is likely not what you want! Client and secret don't go well together. I recommend immediately rotating the secret if it's used in production, and drop the NEXT_PUBLIC_ prefix.
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!
Question 💬
I'm trying to authorize using the authorization endpoint with some parameters, but I keep getting an error that says "State cookie was missing". After looking into it, I realized that the data is being returned in Form Data mode instead of a query string, which is causing issues with parsing.
Unfortunately, the OAuth provider restricts the data to be returned only in "form_post" method during the callback, and I'm not sure what to do. Is there any way to resolve this issue or convert the formData to a query string during the callback process?
I have provided the NextAuth config down as below.
Thanks for your help!
How to reproduce ☕️
Contributing 🙌🏽
Yes, I am willing to help answer this question in a PR
The text was updated successfully, but these errors were encountered: