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.
Verify users with Cloud Functions - Google Cloud Tutorial
From the course: Firebase Essential Training
Verify users with Cloud Functions
- Okay. So far, we've got a cloud function set up that creates a new temporary user. And one that sends an email to the user's email address with a link that they can click to verify their email address. The last step in this process is going to be a function that actually verifies the user's email and sets their is verified flag to true and also moves their corresponding temporary user document into the user's collection. So that might sound like quite a bit, but I'm going to walk you through it step by step. The first thing we're going to do is inside our function source users directory, we're going to create a new file called confirm, email dot JS. And then we're going to add the following code. We're going to say import star as functions from Firebase functions. And we're going to say import star as admin from Firebase admin since we'll be needing to access things like Firebase auth and fire store for this. And…
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
-
-
-
-
-
-