Creating a Logout Button and Dynamic Header | Node Auth Tut - Part 8

Released on July 8th 2017
Length: 07:56

We're at the point where we can log a user into our app, great! But how do we log them out once logged in, and how do we make sure the logout button only shows when they're logged in? The task entails making use of some Passport.js and express-session provided functions, and creating a local data object that can be used within our header's templating system (handlebars file). Follow along, and see exactly how it's done. Video Timeline: --------------- 00:00 - Quick bug fix from the last episode 01:01 - Creating a logout button 03:22 - Creating a dynamically rendered header The Platform: ------------- http://chriscourses.com is a platform in progress whose goal is to educate aspiring and seasoned web developers via story driven learning. Each course tells a different story, and each milestone reveals a different scene. With an expansive universe to explore, you c an track your progress, and gain the necessary skills needed to build your dreams. For updates on the progress of chriscourses.com and future videos, join the Chris Courses mailing list at http://chriscourses.com. Support Chris Courses Through Patreon: -------------------------------------- https://www.patreon.com/chriscourses Chris Courses Social: --------------------- Twitter: https://twitter.com/chriscourses Facebook: https://www.facebook.com/chriscourses Instagram: https://www.instagram.com/chriscourses/ Christopher Lis Social: ----------------------- Twitter: https://twitter.com/christopher4lis CodePen: http://codepen.io/christopher4lis Instagram: https://www.instagram.com/christopher4lis/ SoundCloud: https://soundcloud.com/chr1sm