repositories/auth_repository library

Classes

AuthRepository
Manages user authentication and profile data.
AuthStatusNotifier
Provides the current AuthStatus.

Enums

AuthStatus
Auth session status, updated by AuthRepository.withAuth.

Properties

authRepositoryProvider Provider<AuthRepository>
Provides the AuthRepository instance.
final
authStatusProvider NotifierProvider<AuthStatusNotifier, AuthStatus>
Provides the current AuthStatus.
final

Exceptions / Errors

AvatarTooLargeException
Thrown when the avatar image exceeds AuthRepository.maxAvatarSize.
InvalidCredentialsException
Thrown when stored credentials are rejected by the server (e.g., password was changed). Stored credentials are cleared automatically.
NotLoggedInException
Thrown when AuthRepository.withAuth is called but no stored credentials are available (user has never logged in, or has logged out).