Implementing Twitter login
Twitter is the most used social media platform in the world, with more than 300 million active users. We can't simply forget about incorporating it into our application. In this recipe, we're going to see how we can activate and implement Twitter authentication using the Firebase API.
Getting ready
Before we start the coding part, we need to make some configurations within our application. Head to your Firebase Console
| Authentication
| SIGN-IN METHOD
tab and activate the Twitter option as shown in the following screenshot:

Figure 11: Activating Twitter authentication from the Firebase project console
Now, we will need to create a Twitter application so we can get the app key and secret.
To create a Twitter application, please head to https://apps.twitter.com/ and create your Twitter application. Once done, head to the Keys and Access tokens section and grab the key and secret from there. Then simply copy and paste them to your Firebase console.
How to do it...
- On the...