svelte-firebase-state
Firebase utilities for Svelte 5.
Svelte Playground ->CurrentUserState manages the currently authenticated user.
Quick example:
Parameters:
required
auth Auth
The firebase auth instance.
Properties:
data User | null | undefined
Reactive state that holds the authenticated user.
loading boolean
Reactive state indicating if the user data is loading.
More examples:
Listen to the authenticated user
demo
Loading = true
userId = None