Search⌘ K
AI Features

Create Sign In vs. Sign Out Navbar Item

Explore how to create a Sign In versus Sign Out navbar item by leveraging Firebase authentication and a Svelte user store. This lesson guides you through dynamically displaying authentication buttons based on user state and handling sign-out functionality, preparing your app for secure user session management.

We'll cover the following...

In the previous lesson, we created a Svelte store for the current users. Now, we can import the user store on any page or component to find out whether the user is currently signed in or not. Let’s put that into action!

Sign In vs Sign Out navbar item

Open the services/web/src/components/auth-nav-item.sv ...