Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase authentication error "The given sign-in provider is disabled"

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.

like image 541
Joseph Avatar asked Mar 24 '19 19:03

Joseph


People also ask

How do I authenticate with Firebase?

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.

How do I enable Google Firebase login?

In the Firebase console, open the Auth section. On the Sign in method tab, enable the Google sign-in method and click Save.


1 Answers

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:

enter image description here

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.

like image 109
Jack Avatar answered Oct 14 '22 02:10

Jack