Search⌘ K
AI Features

Create the Login & Admin Page

Explore how to create a login page with Firebase Authentication in a Svelte app. Learn to configure FirebaseUI, manage sign-in flows, update navigation, handle user redirects, and build a basic admin dashboard accessible only to authenticated users.

Creating a login page

In order for users to sign up for an account and eventually log in, we need a page. We are going to create that in a new services/web/src/routes/auth/login.svelte file given below. Click Run and navigate to services/web:

cd services/web

Adding a Sign In Button

Let’s add a simple button to sign in and a click handler to the login.svelte file ...