Closed gabrielemaffoni closed 5 years ago
auth is not merely a global variable it's a reference to the firebase authentication object. You should read the readme of this project.
import pyrebase
config = {
"apiKey": "apiKey",
"authDomain": "projectId.firebaseapp.com",
"databaseURL": "https://databaseName.firebaseio.com",
"storageBucket": "projectId.appspot.com"
}
firebase = pyrebase.initialize_app(config)
# Get a reference to the auth service
auth = firebase.auth()
Hi! I'm trying to login to existing user accounts. I am sure everything is setup correctly (python 3.5, Auth Sign In enabled in my Firebase). However, I keep having the same problem over and over: 'str' object has no attribute 'sign_in_with_email_and_password(email, password)'.
here's the code:
I can't seem to find a solution. Any help?!