thisbejim / Pyrebase

A simple python wrapper for the Firebase API.
2.05k stars 526 forks source link

no attribute 'create_user_with_email_and_password' #313

Open GoodPie opened 4 years ago

GoodPie commented 4 years ago

[x] Check that your version of Python is 3.4+ [x] Check that you are on the newest version of Pyrebase [x] Check that Email/password provider is enabled in your Firebase dashboard under Auth -> Sign In Method.

I'm having issues creating a user with the auth.create_user_with_email_and_password(email, password) function. When running the script, I get:

AttributeError: 'function' object has no attribute 'create_user_with_email_and_password'

The script I'm running:

import pyrebase
...

firebase = pyrebase.initialize_app(config)
auth = firebase.auth()

email = input("Enter your email address: ")
password = getpass.getpass("Enter your password: ")

self.auth.create_user_with_email_and_password(email, password)

Just basing it off the documentation. Can't find much on the creating user section besides the little snippet under the auth section.

Python: 3.7.2 Pyrebase: 3.0.27 Email/Password provider: Enabled