Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase "message": "PASSWORD_LOGIN_DISABLED" response when trying to authenticate

I'm following exactly the steps mentioned here:

https://github.com/thisbejim/Pyrebase/blob/master/README.md

But I get the following error:

"error": {
  "errors": [
   {
    "domain": "global",
    "reason": "invalid",
    "message": "PASSWORD_LOGIN_DISABLED"
   }
  ],
  "code": 400,
  "message": "PASSWORD_LOGIN_DISABLED"
 }
}
like image 392
syfy Avatar asked Sep 26 '16 13:09

syfy


1 Answers

Firebase has different Authentication methods inside the console such as email, Google, Facebook, Twitter, and more.

Therefore make sure that you have (in this case) the Email/Password sign in method activated:

  1. Go to the console.
  2. Click on the Authentication Menu on the sidebar.
  3. Inside Sign-In Method make sure to have the "Email/Password" option.

Also, make sure you already have the user created on the Users tab.

On the other hand, you can create the user with the same Pyrebase library.

auth.create_user_with_email_and_password(email, password)

Check out the Example Code inside the API.

like image 184
villancikos Avatar answered Sep 28 '22 18:09

villancikos