Closed
Description
[REQUIRED] Describe your environment
- Operating System version: iPadOS 15.5
- Browser version: Ionic 5 + Angular App
- Firebase SDK version: 9.8.2
- Firebase Product: auth
[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:
private async loginWithFacebookNative() {
const auth = getAuth();
const provider = new FacebookAuthProvider();
return signInWithRedirect(auth, provider).then((res) => {
return getRedirectResult(auth)
}).then((result) => {
const credential = FacebookAuthProvider.credentialFromResult(result);
return result;
}).catch((error: FirebaseError) => {
// Handle Errors here.
console.log('ERROR', error.code);
console.log('ERROR', error.message);
console.log('ERROR', error.stack);
});
}