From the course: React: Authentication (2021)

Unlock the full course today

Join today to access over 24,400 courses taught by industry experts.

Modifying the email verification flow

Modifying the email verification flow - React.js Tutorial

From the course: React: Authentication (2021)

Modifying the email verification flow

- [Instructor] Alright, the next thing we're going to convert to Cognito is the Email Verification Flow. Now, as I mentioned, Cognito takes care of sending emails and verifying codes for us. So if we were setting all this stuff up from scratch this could potentially save us a lot of the work that we did earlier in the course. Anyway, we're going to start on the front end here because we need to make some changes to where we redirect the user. Because of the way Cognito does email verification, that is by sending the user a six digit code instead of simply a link, we need to create a page for the user to enter that code and redirect them there after they first sign up. So that's what we're going to do. In our Pages folder here, we're going to create a new file and let's call this file EmailVerificationCodePage.js It's kind of similar to our EmailVerificationLandingPage except it's going to have an input where the user can…

Contents