User Profile and Access Management

In the last chapter, we saw how we can use the Firebase with the react-redux application. We also explored Redux in detail and saw how and when we need to use Redux in our React app, and Firebase Realtime Database will give us the Realtime seat booking status in our application. In this chapter, we will go through Firebase Admin SDK, which provides a user management API to read and write Realtime Database data with full admin privileges. So we will create an admin page for our application where we have the ability to perform the actions such as the following:

  • Creating new users
  • User search engine where we can search the users by different criteria
  • List of all the users
  • Accessing the user metadata, which includes the account creation date and last sign-in date for the particular user
  • Deleting the users
  • Updating the user information without having to sign in as the user
  • Verifying emails
  • Changing a user's email without sending an email notification to revoke these changes
  • Creating a new user with a phone number and changing the user's phone number without sending SMS verification

First, we need to do the setup of Firebase Admin SDK in Node.js environment to perform the preceding actions as an admin.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset