firebase / firebase-js-sdk

Firebase Javascript SDK
https://firebase.google.com/docs/web/setup
Other
4.8k stars 884 forks source link

Firebase Auth with Apple sign-in issue in Cordova #3874

Open Pitouli opened 3 years ago

Pitouli commented 3 years ago

[REQUIRED] Describe your environment

[REQUIRED] Describe the problem

I implemented Sign in with Apple using Firebase auth

It works well on web, either Mac, iOS or Android. It works well on Android Cordova But on iOS Cordova, the Apple Sign in popup up for touch id appears, I press, I got ok, there is redirection, and then it ends on a Firebase hosted page with the message "The requested action is invalid"

Note that I think my Cordova is correctly configured (deep links and all) since the Google Auth works well from start to end, wether it's on web (tested on Mac, iOS or Android) or on Cordova (both on Android and iOS).

The issue seems to also appears on Android Native, or with flutter: https://github.com/firebase/firebase-android-sdk/issues/1943

MeghaB commented 3 years ago

Tracking internally via b/170137011

Pitouli commented 3 years ago

Do you have updates on this subject?

My app is refused by Apple since I do not provide Sign In with Apple.

I will continue investigate if the error is on my side, but at the moment all the clues are in favor of a firebase issue.

Pitouli commented 3 years ago

Any clue? I'm force to remove all the Identity providers of my app since I cannot support Apple Auth :/

If the error is not on Firebase side, could you please explain what could cause a "The requested action is invalid" message so I can search solutions on my side. Is it relative to a configuration issue on my Apple Dev env? Relative to a bug in my app?

Thanks!

nikkothari22 commented 3 years ago

Some of our users are also facing the same problem while trying to login with Facebook using the Web SDK. The auth redirect page shows a blank screen with "The requested action is invalid"

DanielJackson-Oslo commented 3 years ago

I only had "The requested actions is invalid" in one browser, specifically Firefox - and only with my default cookies and storage. In privacy mode it worked again, and when disabling the facebook container in Firefox, it worked again.

Might be that the error is related to user data stored in the browser cache / cookies / localstorage ?

ffoliveira commented 3 years ago

Some of our users are also facing the same problem while trying to login with Facebook using the Web SDK. The auth redirect page shows a blank screen with "The requested action is invalid"

I implemented Firebase login with Google and Facebook for website in javascript. In the iphone tester, it occurs in 10% of trying. Most of times it login without that error. but sometimes it occurs with Facebook and Google auth also.

In the iphone, the error occurs in the Chrome and the Safari.

danieldanielecki commented 1 month ago

https://github.com/firebase/firebase-js-sdk/issues/4256 related

danieldanielecki commented 1 month ago

https://github.com/firebase/firebase-js-sdk/issues/2103#issuecomment-590750609 didn't work for me :(