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.
Create temporary users - Google Cloud Tutorial
From the course: Firebase Essential Training
Create temporary users
- [Instructor] Okay. Now let's get started implementing our email verification flow. As we saw previously, the first step in implementing this flow is writing a function that creates a temporary user document when a user signs up. So let's start off by creating a user's directory inside our function source directory. So we'll say new folder, users. And then inside there, we're going to create a file called create account dot JS. And inside here, we're going to define the function that our front end will call when a new user signs up. So we'll start off by saying import star as functions from Firebase dash functions and like the hello world function that we saw earlier, this function is going to be an HTTPS triggered function. So we'll say export const create account equals functions dot HTTPS dot on request, and the callback is going to be an async function that takes request and response arguments. And then inside…
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
-
-
-
-
-
-