Check out a free preview of the full Building Web Apps (with React, Ampersand, ES6 and Webpack) course:
The "Logging Out" Lesson is part of the full, Building Web Apps (with React, Ampersand, ES6 and Webpack) course featured in this preview video. Here's what you'd learn in this lesson:
Since logins are manage by GitHub, this application can’t directly log out the user. It can, however, clear the LocalStorage data and refresh the browser so there isn’t any persistent data. Henrik adds the logout functionality and explains his reasoning behind using window.location for the browser refresh.