🔥 Firebase Svelte v2

<User>

Props

  • auth? - The firebase auth instance, optional if you put the <FirebaseApp> component at the root of your app, or higher than where you're using this component.

Slots & Props

default

The default slot is rendered when the user is signed in.

  • user: User - The user object from firebase auth.
  • signOut: () => Promise<void> - The user object from firebase auth.

loading

The loading slot.

signedOut

The signedOut slot is rendered when the user is signed out.

  • auth: Auth - The firebase auth instance. This is passed in as a prop, so you can use it to sign in the user.