Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Firebase Cookbook

You're reading from   Firebase Cookbook Over 70 recipes to help you create real-time web and mobile applications with Firebase

Arrow left icon
Product type Paperback
Published in Nov 2017
Publisher Packt
ISBN-13 9781788296335
Length 288 pages
Edition 1st Edition
Arrow right icon
Author (1):
Arrow left icon
Houssem Yahiaoui Houssem Yahiaoui
Author Profile Icon Houssem Yahiaoui
Houssem Yahiaoui
Arrow right icon
View More author details
Toc

Table of Contents (15) Chapters Close

Preface 1. Firebase - Getting Started FREE CHAPTER 2. Firebase Real-Time Database 3. File Management with Firebase Storage 4. Firebase Authentication 5. Securing Application Flow with Firebase Rules 6. Progressive Applications Powered by Firebase 7. Firebase Admin SDK 8. Extend Firebase with Cloud Functions 9. We’re Done, Let’s Deploy 10. Integrating Firebase with NativeScript 11. Integrating Firebase with Android/iOS Natively 12. Hack Application's Growth 13. Adding Analytics and Maximizing Earnings 14. Firebase Cloud FireStore

Authenticating using anonymous or password authentication

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.

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...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime