19 lines
535 B
Dart
19 lines
535 B
Dart
import 'package:hl_lieferservice/feature/authentication/model/user.dart';
|
|
|
|
abstract class AuthState {}
|
|
|
|
class Unauthenticated extends AuthState {
|
|
final bool sessionExpired;
|
|
Unauthenticated({this.sessionExpired = false});
|
|
}
|
|
|
|
/// Transient state while [SetAuthenticatedEvent] is being processed and the
|
|
/// user info is being fetched from the server.
|
|
class Authenticating extends AuthState {}
|
|
|
|
class Authenticated extends AuthState {
|
|
User user;
|
|
String sessionId;
|
|
|
|
Authenticated({required this.user, required this.sessionId});
|
|
} |