To allow users to log in/sign up for our app, we need to do three things:
- Turn on email authentication on the Firebase console.
- Submit the email and password in our form to Firebase when the user clicks on the button.
- Either sign up or log in the user based on the result.
Let’s open up our Firebase console (https://console.firebase.google.com) and get to work on task #1:
- From our Chatastrophe project page, click on Authentication.
- Under the SIGN-IN METHOD tab, you can see all the options that Firebase provides. These authentication solutions are huge boons to developers, as configuring authentication can be tricky (especially when working with third-party APIs, such as Twitter or Facebook). There's a lot of infrastructure to create to provide the proper security. Firebase takes care of that for us, so all we have to worry about is tapping...