I try to migrate my google-auth-only project from firebase 2.x to 3.0 using the web-sdk example from: .html
After setting up the initialisation-code with apiKey (via Google-Developer-Console - used the server-option) and all the other needed options, i use the "login with google"-button. After this, an redirect-screen appears, then redirecting back to starting page and getting an "auth/internal-error".
Any suggestions?
I try to migrate my google-auth-only project from firebase 2.x to 3.0 using the web-sdk example from: https://github./firebase/quickstart-js/blob/master/auth/google-redirect.html
After setting up the initialisation-code with apiKey (via Google-Developer-Console - used the server-option) and all the other needed options, i use the "login with google"-button. After this, an redirect-screen appears, then redirecting back to starting page and getting an "auth/internal-error".
Any suggestions?
Share Improve this question edited May 18, 2016 at 23:55 Marcel Ennix asked May 18, 2016 at 23:40 Marcel EnnixMarcel Ennix 1,3661 gold badge12 silver badges17 bronze badges1 Answer
Reset to default 3I would remend importing your project in the Firebase Console rather than configuring keys manually if possible, but appreciate there are some cases where that isn't ideal.
For the API key, try switching to the "Browser" type key rather than the "Server" one for anything running in the browser, and make sure it is approved for the domain you are using.
Google Sign In will need a client ID as well. The easiest way to implement is to use the signInWithPopUp
method, but there are instructions for manually configuring the Google Sign In lib too.
If you do need to create a client ID, you can see the full instructions in the Google Sign In documentation.