Search code examples
javascriptwebfirebasefirebase-authenticationfirebasesimplelogin

Firebase.auth() deprecated?


I was following an official firebase tutorial on creating a login page. I receive a warning that FirebaseRef.auth() is being deprecated and to use FirebaseRef.authWithCustomToken() instead. Any code after calling the firebase. auth() method doesn't run. Based on Google results this has been an issue since 2014, but the tutorial came out July 26 2016. Anyone know what I am doing wrong?


Solution

  • There have been a lot of changes in the new Firebase version. For example, earlier we were required to setup the context by creating an Application and calling it in the Manifest. Now this is not required. Like wise there are many changes/improvisations in the new version.

    Firebase documentation provides enough code to get you started: https://firebase.google.com/docs/auth/android/password-auth

    Or you can go through this series of video, excellent they are: https://www.youtube.com/playlist?list=PLGCjwl1RrtcTXrWuRTa59RyRmQ4OedWrt