presentation/providers/auth_provider library

Classes

AuthChangeNotifier
A ChangeNotifier that fires whenever the Supabase auth state changes. Used as GoRouter.refreshListenable so the router re-evaluates its redirect callback on sign-in / sign-out.
AuthStateProvider
Streams auth state changes from Supabase.
AutoJoinProvider
Auto-joins organizations by email domain on sign-in.
CurrentUserProvider
Exposes the current authenticated user (null when signed out).

Properties

authStateProvider → AuthStateProvider
Streams auth state changes from Supabase.
final
autoJoinProvider → AutoJoinProvider
Auto-joins organizations by email domain on sign-in.
final
currentUserProvider → CurrentUserProvider
Exposes the current authenticated user (null when signed out).
final

Functions

authState(Ref ref) → Stream<AuthState>
Streams auth state changes from Supabase.
autoJoin(Ref ref) → Future<void>
Auto-joins organizations by email domain on sign-in.
currentUser(Ref ref) → User?
Exposes the current authenticated user (null when signed out).