Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Firebase Cookbook

You're reading from  Firebase Cookbook

Product type Book
Published in Nov 2017
Publisher Packt
ISBN-13 9781788296335
Pages 288 pages
Edition 1st Edition
Languages
Author (1):
Houssem Yahiaoui Houssem Yahiaoui
Profile icon Houssem Yahiaoui

Table of Contents (15) Chapters

Preface 1. Firebase - Getting Started 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

Implementing anonymous authentication

You might wonder why we need this. Since it's anonymous, it means that we don't have an identity on our system. That is true, but sometimes we want to have protected content that we deliver to our authorized users. So by using this method, we allow non-users to have a temporary account to experience the app. But if they, for instance, decide to create an account, we can provide them the option of linking their sign-in account to an anonymous one.

How to do it...

  1. In order to do this, we will use the Firebase auth APIs like we did previously, as shown in the following code snippet:
      //Get a button reference.
let anonLogin =
document.getElementById('anonymousLogin...
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 $15.99/month. Cancel anytime}