userProfileProvider top-level property
final
Provides the current user's profile.
Watches the DB directly — automatically updates when user data changes (e.g., after login, profile fetch, or cache clear). Background-refreshes stale data automatically.
Implementation
final userProfileProvider = StreamProvider.autoDispose<User?>((ref) {
return ref.watch(authRepositoryProvider).watchUser();
});