From the course: React: Authentication
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Converting the verify email route - React.js Tutorial
From the course: React: Authentication
Converting the verify email route
- [Instructor] All right, we have our page where the user can enter the verification code that Cognito will send them. So, the next thing we're going to do is create a server route that the user can actually send that code to in order to prove to Cognito that they own the email address. So here's what that's going to look like. Let's open up the verify email route, and we're going to make a few key changes to this route and it's handler. So, first of all, up at the top here, what we're going to do is import something called CognitoUser from Amazon Cognito Identity JS and down here at the bottom, we're going to import the awsUserPool thing that we created earlier. All right, so we're going to import that from util slash awsUserPool. Okay, and now that we have those things, we're going to go through the routes handler and make a few changes to make this route use Cognito instead of our own homemade logic.…
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
-
-
-
-
-
-
-
(Locked)
Amazon Cognito basics4m
-
(Locked)
Setting up an AWS Cognito project7m 39s
-
(Locked)
Creating a user pool in Node.js5m 28s
-
(Locked)
Converting the sign-up endpoint to AWS6m 33s
-
(Locked)
Converting the sign-up page to AWS1m 59s
-
(Locked)
Modifying the email verification flow9m 29s
-
(Locked)
Converting the verify email route6m 32s
-
(Locked)
Converting the login route5m 22s
-
(Locked)
Converting the forgot password route4m 16s
-
(Locked)
Rewriting the reset password endpoint3m 3s
-
(Locked)
Converting the reset password page4m 22s
-
(Locked)
-
-