'Uncaught (in promise) FirebaseError: Firebase: Error (auth/unauthorized-domain). error
When I try to open google sign-in in the deployed version of my app I get this error in the console and the popup closes. I have googled a bit about this error and I found that I need to add the domain in my firebase through Authentication -> SignIn method ->Authorized domains and then add the domain I have also tried this but it doesn't work.
and when I try to open the google sign in popup I get this error in the console:

How can I enable google authentication in the deployed app?
Solution 1:[1]
- Open Firebase
- Go to console
- Open your project
- Go to Authentication
- sign-in-method
- Add domain
Try it!
In my case it's working
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Roman Mahotskyi |

