Update to new Firebase auth API.
https://www.firebase.com/docs/web/guide/user-auth.html