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 - Google Cloud Tutorial
From the course: Firebase Essential Training
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
What are Cloud Functions?2m
-
(Locked)
Add Cloud Functions to a project4m 45s
-
(Locked)
Write Cloud Functions in ES6+ syntax10m 33s
-
(Locked)
Build an email verification flow3m 9s
-
(Locked)
Modify Firestore security rules1m 8s
-
(Locked)
Create temporary users10m 57s
-
(Locked)
Verify temporary users2m 44s
-
(Locked)
Send emails with nodemailer7m 33s
-
(Locked)
Send emails from Cloud Functions58s
-
(Locked)
Verify users with Cloud Functions6m 11s
-
(Locked)
Demonstrate the verification flow3m 20s
-
(Locked)
Cloud Functions pricing1m 41s
-
-
-
-
-
-