课程: React: Creating and Hosting a Full-Stack Site
免费学习该课程!
今天就开通帐号,24,700 门业界名师课程任您挑!
Making interface adjustments for authenticated users - React.js教程
课程: React: Creating and Hosting a Full-Stack Site
Making interface adjustments for authenticated users
- [Instructor] All right, so at this point we have the pages that will allow the user to either log in or create an account, but so far, not a whole lot happens in the interface besides navigating the user to the articles list page. So what we're going to want to do here is, A, add some sort of link that allows the user to log in to our nav bar up here next to the other links that we have, and, B, if the user's already logged in, we're going to want to have a log out button that will actually sign the user out. And maybe we'll want to do something like display the user's email address as well just so that we can prove that we actually have a logged in user here visually. So here's what this is going to look like. We're going to go back over to our IDE and let's open up the nav bar here real quick. We're just going to find that here, NavBar.jsx. And now next to our articles link, we're going to add another list item here with a button inside it that says Sign In, or Log In, or you can…
内容
-
-
-
-
-
-
-
(已锁定)
Why Firebase Auth?2 分钟 9 秒
-
(已锁定)
Creating a Firebase project1 分钟 43 秒
-
(已锁定)
Adding Firebase Auth to React6 分钟 7 秒
-
(已锁定)
Build a login form8 分钟 51 秒
-
(已锁定)
Build a create account page7 分钟 23 秒
-
(已锁定)
Making interface adjustments for authenticated users6 分钟 8 秒
-
(已锁定)
Creating a custom auth hook9 分钟 3 秒
-
(已锁定)
Adding Firebase Auth to Node.js6 分钟 35 秒
-
(已锁定)
Protecting endpoints using auth tokens4 分钟 33 秒
-
(已锁定)
Protecting the upvote and comment endpoints5 分钟 7 秒
-
(已锁定)
Making requests with auth tokens7 分钟 7 秒
-
(已锁定)
-
-