Ionic Framework and Firebase 3.x version: This domain is not authorized for OAuth operations for your Firebase project

后端 未结 3 1389
青春惊慌失措
青春惊慌失措 2021-01-31 12:08

I am developing an iOS app using Ionic Framework and Firebase. I have updated Firebase SDK to version 3.x in my project. What I am trying to do is to authenticate the user with

相关标签:
3条回答
  • 2021-01-31 12:44

    The error "This domain is not authorized for OAuth operations for your Firebase project. Edit the list of authorized domains from the Firebase console." only prevents signInWithPopup() signInWithRedirect() linkWithPopup() and linkWithRedirect() operations from working. Every other function, including signInWithCredential(), should work.

    I believe that you are seeing this error because ionic apps do not have a real domain, and this is a requirement for the 4 functions I mentioned above.

    The solution to your problem would be to ignore the error (it is just informational) and not use signInWithPopup signInWithRedirect linkWithPopup or linkWithRedirect. Instead, use a library for OAuth such as ngCordovaOAuth and then use auth().signInWithCredential(...) (see example instructions for Twitter here).

    0 讨论(0)
  • 2021-01-31 12:56

    i have same issue but i solved it by creating new firebase project.

    0 讨论(0)
  • 2021-01-31 13:00

    Ok, here is my temporary solution:

    I import both Firebase SDK v.2.x and Firebase SDK 3.x in my ionic project. I use version 2.x for Facebook authentication on iOS then I use version 3.x to get access to all new features on Firebase such as Storage and so on.

    Hopes this helps.

    0 讨论(0)
提交回复
热议问题