Signing Out
So far, we can create users which also simultaneously signs us in, but we need to give our users a way to sign out. In this lesson, we add that feature to our app.
We'll cover the following...
We'll cover the following...
Sign Out Button HTML #
We add the HTML for the sign-out button inside the dashboard. That way the button is only shown to signed-in users.
<div id="account"><h1>Account</h1><button class="auth" auth="sign-out">sign out</button></div>