title: pyrebase4 AttributeError: 'function' object has no attribute 'sign_in_with_email_and_password'
body: <p>I couldn't make a login screen with pyrebase4. I'm getting this error:</p>
  <blockquote>
  <p>AttributeError: 'function' object has no attribute
  'sign_in_with_email_and_password'</p>
  </blockquote>
  <p>Creating user is also not possible and it gives the error:</p>
  <blockquote>
  <p>AttributeError: 'function' object has no attribute
  'create_user_with_email_and_password'</p>
  </blockquote>
  <p>I'm using pyrebase4 since I read that the original pyrebase was discontinued. I saw more than one video of people just writing the code exactly like I did and theirs seem to just work. I don't understand why mine doesn't.</p>
  <ul>
  <li>Python version: 3.10.4</li>
  <li>Kivy version: 2.1.0</li>
  <li>KivyMD version: 0.104.2</li>
  <li>Pyrebase4 version: 4.5.0</li>
  </ul>
  <p>main.py</p>
  <pre><code>from kivymd.app import MDApp
  from kivy.lang import Builder
  from kivy.uix.screenmanager import ScreenManager, Screen
  import pyrebase
  
  class MainApp(MDApp):
      
      def build(self):
          return Builder.load_file('main.kv')
      
      firebaseConfig = {
          '''write your config here'''
      }
      firebase = pyrebase.initialize_app(firebaseConfig)
      auth = firebase.auth
      
      def login(self):
          email = self.root.get_screen(&quot;test1win&quot;).ids.user_mail.text
          password = self.root.get_screen(&quot;test1win&quot;).ids.password.text
          
          login = self.auth.sign_in_with_email_and_password(email, password)
          self.root.current = &quot;test2win&quot;
          print(&quot;Login Success&quot;)
  
  class WindowManager(ScreenManager):
      pass
  
  class TestWindow1(Screen):
      pass
  
  class TestWindow2(Screen):
      pass
  
  if __name__ == &quot;__main__&quot;:
      MainApp().run()
  </code></pre>
  <p>main.kv</p>
  <pre><code>#: include testwindow1.kv
  #: include testwindow2.kv
  
  WindowManager:
      TestWindow1:
      TestWindow2:
  </code></pre>
  <p>testwindow1.kv</p>
  <pre><code>&lt;TestWindow1&gt;:
      name: &quot;test1win&quot;
      Screen:
          BoxLayout:
              orientation: 'vertical'
              MDTextField:
                  id: user_mail
                  hint_text: &quot;E-Mail&quot;
                  size_hint_x: 0.8
                  pos_hint: {&quot;center_x&quot;: 0.5}
                  font_size: 24
                  mode: &quot;rectangle&quot;
              MDTextField:
                  id: password
                  hint_text: &quot;Password&quot;
                  size_hint_x: 0.8
                  font_size: 24
                  pos_hint: {&quot;center_x&quot;: 0.5}
                  mode: &quot;rectangle&quot;
              MDRaisedButton:
                  text: &quot;Login&quot;
                  pos_hint: {&quot;center_x&quot;: 0.5}
                  on_release: app.login()
              Widget:
  </code></pre>
  <p>testwindow2.kv</p>
  <pre><code>&lt;TestWindow2&gt;:
      name: &quot;test2win&quot;
      Screen:
          MDLabel:
              text: &quot;You're logged in&quot;
  </code></pre>