From the course: React: Authentication
Unlock this course with a free trial
Join today to access over 24,800 courses taught by industry experts.
Creating a verification landing page - React.js Tutorial
From the course: React: Authentication
Creating a verification landing page
- [Instructor] Alright, so now that we have that verify email route on the server, the last thing we have to do here is hook things up on the front end. So as you can see, I've done most of the work here for you. We have this email verification landing page thing that's set up. And basically what this does is, as you can see here, it pulls the verification string out of the parameters, right? I'll show you that in just a minute here. So it pulls the verification string out of the route parameters, and then it sends that to the server, right, to that route that we just created there. And depending on what happens, right, depending on if there's an error or not, it sets this is loading thing to false and this is success thing to either true or false. And down here in the JSX, you can see that there's really three possibilities that it'll display. The first thing is a loading message showing that it's currently trying to verify the user's verification string. And then if it's successful,…
Contents
- The basic email verification process2m 46s
- Setting up an email provider3m 6s
- (Locked)Creating an email provider API key3m 58s
- (Locked)Sending emails from Node7m 22s
- (Locked)Integrating verification tokens8m 3s
- (Locked)Adding a "please verify email" page2m 2s
- (Locked)Adding a verify email route4m 18s
- (Locked)Creating a verification landing page4m