课程: React: Authentication

今天就学习课程吧!

今天就开通帐号,24,700 门业界名师课程任您挑!

Modifying the email verification flow

Modifying the email verification flow - React.js教程

课程: React: Authentication

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…

内容