From the course: Firebase Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Demonstrate the verification flow

Demonstrate the verification flow - Google Cloud Tutorial

From the course: Firebase Essential Training

Start my 1-month free trial

Demonstrate the verification flow

- So we've come to the point where we have pretty much all the necessary cloud functions in place to actually see our email verification flow in action. But before we deploy our functions, there's just two more little things that we need to change in order for our functions to actually work correctly. The first thing, and this is very important or you'll get an error from your functions, is since we're using the admin package in many of our functions, we need to open up our functions index.js file and import the admin package by saying const admin = require('firebase-admin') and then down here, above where we export our functions, we're going to say admin.initializeApp(); and that's all for that. The second thing we have to do is, if you remember from our front end, for example, if we open up our create account page, when we're making requests to our functions we're just using /createAccount instead of the full URL. Now…

Contents