From the course: Building React and ASP.NET Core Applications
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Final steps
From the course: Building React and ASP.NET Core Applications
Final steps
- [Narrator] Now, it's time to implement the final steps, so we can configure the auth0 to the auth0 configuration in our react tab. For that, let's go to Visual Code. For us to be able to use the authentication related hooks from the wrapper, we need to change the nav menu. So, let's go to ClientApp, then src, then components, and then NavMenu.js. We are going to change this from a clause-based component to a functional component. So, for that, let's write in here, const, NavMenu is equal to, then goes to, and then, inside here, we are going to define everything. Now, the first thing that we want to do in here is that we want to be able to use methods like isAuthenticated, loginwithRedirect, logout, from the authentication wrapper. So, let us first import the wrapper. For that, we just write in here import, and then useAuth0 from, then here ../auth0-wrapper. Then, inside the NavMenu, we write const, what we want to…
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.