-
Notifications
You must be signed in to change notification settings - Fork 894
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
signInWithRedirect with FacebookAuthProvider working in iOS but not in IPadOS #6331
Comments
Hi @arturomf, thanks for filing this. To help us debug, would you please open the Safari remote debugging tools to determine if the redirect URL is the same for both the iPad and iPhone? |
Hey @arturomf. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically. If you have more information that will help us get to the bottom of this, just add a comment! |
Since there haven't been any recent updates here, I am going to close this issue. @arturomf if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this. |
I'm sorry for the delay, I've been on holiday. I have tested both iPhones and iPad. After the signInWithRedirect call, I can see in the Safari console an HTTP request: iPhone: iPad The HTTP request has a different user agent (I think, the problem is here): iPhone: iPad: On iPhone, after that request, I have another HTTP Request to: On iPad, I get the error. |
Thanks @arturomf, this was super helpful. It appears the issue is that the iPad's user agent isn't tripping this function: firebase-js-sdk/packages/auth/src/core/util/browser.ts Lines 125 to 127 in d87d3a8
We'll need to do some investigating to see if there's a way to determin iPad from that user agent (we don't want to introduce false-positives). It looks like the only thing to go on would be As an immediate fix, I believe in Cordova you can override the user agent (how depends on platform/version). If you update the user agent on iPad to include the string "iPad" the test linked above will work |
The linked PR should fix the issue and should be available soon. Keep an eye on the release notes! |
[REQUIRED] Describe your environment
[REQUIRED] Describe the problem
When using signInWithRedirect method with FacebookAuthProvider, in iOS (iPhone) it's working as intended, but in IPadOS (on iPad) it throws error:
Firebase: This domain is not authorized for OAuth operations for your Firebase project. Edit the list of authorized domains from the Firebase console. (auth/unauthorized-domain).
Steps to reproduce:
Simply try to use the code from https://firebase.google.com/docs/auth/web/cordova with FacebookAuthProvider in cordova App.
Relevant Code:
The text was updated successfully, but these errors were encountered: