I imported Firebase JS v3 API and used to initialize Firebase using:
firebase.initializeApp(config);
However the app failed to load correctly via web browser on localhost, resulting in the following error:
Error: This domain is not authorized for OAuth operations for your Firebase project. Edit the list of authorized domains from the Firebase console.
firebase.js:71:1333
Make sure you add the SHA1 key from Play Console to your app in the Firebase Console. Also, the google-services. json file needs to be downloaded again, and added to app, after submitting to app store. Then re-upload to google play store.
A: The Authorized Domain is a property that defines the limits of certain functions accessible to the account administrator. When a ZipDX account is established it may includes one or more “Authorized Domains.” This setting determines how much access the account administrator has to certain information.
I solved the problem by adding the localhost
domain to OAuth redirect domains
(within SETUP SIGN IN METHOD
on the Auth
tab of Firebase console).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With