When setting up social sign on for apple, you need to set up Single Sign on from your apple developer account, which requires setting up the app & service identifiers + a key.
https://marketplace.auth0.com/integrations/apple-social-connection
This link walks you through the process for setting up the apple social connection.
Critically, when you get to the the step where you set up the “Sign In With Apple” Configuration for the Service Identifier you created, you need to put in two values:
- Domain / Subdomain
- The Return URLs
The (1) Domain / Subdomain should be something like:
What I referred to above is the Return URL. I mistakenly was putting in my return urls for mobile that followed this format:
{PRODUCT_BUNDLE_IDENTIFIER}://{yourDomain}/ios/{PRODUCT_BUNDLE_IDENTIFIER}/callback
Doing the above for both IOS / Android, resulted in the invalid_request error. I don’t know where, may have been the logs, I discovered that it needed to be:
“https://{AuthDomain}/login/callback”
ex: https://dev-6grfaf8yl20x0nrn.us.auth0.com/login/callback
Updating the callback URL for the service fixed the sign in problem via Apple for me.