As we all know, Firebase supports both anonymous and password-based authentication, each with its own, suitable use case. So in this recipe, we're going to see how we can perform both anonymous and password authentication.
Authenticating using anonymous or password authentication
Getting ready
Before we begin, we need to make sure that our application is fully configured with Firebase. Please check the Adding the Firebase plugin to our application recipe from this chapter, which will teach you how you can do that.
You will also need to initialize the Firebase plugin with the application. To do that, open your project, head to your app.js file, and add the following import:
var firebase = require("nativescript...