We have a development copy of a website and a production copy. We also have a Firebase project for dev and another for production.
In both, sign-in with Google and email link options work. But for Apple sign-in, it only works in development.
I'm honestly stumped about what the issue could be. The error in the Apple sign-in popup provides no other clue. It just thinks the redirect URL for the Firebase project is wrong, even after all of the checking I've done.
Any suggestions will be greatly appreciated.
com.example.web
, but for our companyhttps://
prefixhttps://
prefixAfter all this, I also tried creating a completely different Service Identifier to use for production. Instead of the invalid redirect URL issue, I got an "invalid client" error, so I went back to the identifier and key we were originally using.
There were a few that came up on the Apple forums and a handful here on StackOverflow.
Most said to make sure the redirect URL was correct and had the HTTPS prefix, and that the domains were added without a prefix. I've checked these over and over and there's no mistake here.
I also tried deleting and recreating the indentifier as mentioned in this thread. Apple sign-in still works with the development site and development Firebase project, but not with the production site and Firebase project.
Issue resolved.
When we first encountered this issue, the configuration was incomplete. I think after we finished configuration in our Apple account, it may have taken time to propagate since we were still seeing the error by the time I posted this question.
But it's working correctly now.