简体   繁体   中英

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?

  1. Open Firebase
  2. Go to console
  3. Open your project
  4. Go to Authentication
  5. sign-in-method
  6. Add domain

Try it!

In my case it's working

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM