SOLVED
I am trying to put authentication on firebase. I finish my code, and, when I tried it, it says:
The given sign-in provider is disabled for this Firebase project. Enable it in the Firebase console, under the sign-in method tab of the Auth section.
I tried to search on YouTube and Google. But I didn´t find anything.
You can sign in users to your Firebase app either by using FirebaseUI as a complete drop-in auth solution or by using the Firebase Authentication SDK to manually integrate one or several sign-in methods into your app. The recommended way to add a complete sign-in system to your app.
In the Firebase console, open the Auth section. On the Sign in method tab, enable the Google sign-in method and click Save.
The message is telling you exactly what to do, go to the firebase console of your project and turn the corresponding auth methods on. If you are only trying to use Gmail (Google) login, then just enable Google in the sign-in methods inside the Authentication tab, like this:
Also, make sure that you only put the sign-in options that you needed and turned on inside the siginOptions
parameter, if Google is the only one you want, then just put firebase.auth.GoogleAuthProvider.PROVIDER_ID
and remove everything else.
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