Error /sign-in/social 404 - Apple provider

Hello, I am using Hono as my backend server and SwiftUI for iOS client.
I'm having some trouble with sign in with apple, I have email/OTP and anonymous auth setup and they work.

When i use the handler like this
// prefixed by /api/auth
app.on(['POST', 'GET'], '/*', async (c) => {
    const authInstance = auth.getAuth(c.env);
    return authInstance.handler(c.req.raw);
});

and I send a request from my client POST /api/auth/sign-in/social {"idToken":"....","provider":"apple"}
I get 400
{"code":"VALIDATION_ERROR","message":"Invalid body parameters"}

any idea why? I have the openAPI plugin and can see that the route match and body too.
Was this page helpful?