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

Create temporary users - Google Cloud Tutorial

From the course: Firebase Essential Training

Start my 1-month free trial

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…

Contents