Sign In With Apple on react app with firebase auth not working

Hi, I am trying to implement Sign In With Apple on a react app, using the react-apple-signin-auth package, with Firebase Authentication. My redirect URI is set to the url provided by firebase auth and client ID to the service ID created for the web app on Apple Developer. I am able to initiate the popup and input apple ID and password. However, when asked for confirmation to sign in, I get the following error:

"Your request could not be completed because of an error. Please try again later"

I am unsure of what is causing this error and hence unable to fix it. What should I do now?