Search⌘ K
AI Features

Signing Out

Discover how to add a sign-out button to your web app's dashboard and create a custom sign-out function with Firebase Authentication. This lesson guides you through managing user sign-out actions and updating the interface accordingly, ensuring users can securely end their sessions.

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.

HTML
<div id="account">
<h1>Account</h1>
<button class="auth" auth="sign-out">sign out</button>
</div>

Create the signOut function

...