Capacitor with Apple Login

I have a Capacitor app that has social login. I want to add apple login functionality, but the problem is that for some reason, apple sends oauth information as a POST request with form data for the code and state.

Once I login on the apple side and it redirects back to my app, it has no state or code to be able to properly authenticate. Is there a solution that works for apple when it comes to better-auth and capacitor?

P.S. It works fine with google and microsoft auth, just not on apple
Was this page helpful?