2020-01-04 21:31:52 +02:00
|
|
|
abstract class AuthState {}
|
|
|
|
|
|
|
|
class AuthenticationStateInitial extends AuthState {}
|
|
|
|
|
|
|
|
class AuthenticationInProgress extends AuthState {}
|
|
|
|
|
|
|
|
class AuthenticatedSuccessfully extends AuthState {}
|
|
|
|
|
|
|
|
class AuthenticationFailure extends AuthState {
|
2022-10-12 13:09:57 -04:00
|
|
|
AuthenticationFailure({required this.error});
|
2020-01-04 21:31:52 +02:00
|
|
|
|
|
|
|
final String error;
|
2020-01-08 14:26:34 +02:00
|
|
|
}
|
2020-01-04 21:31:52 +02:00
|
|
|
|
2020-01-08 14:26:34 +02:00
|
|
|
class AuthenticationBanned extends AuthState {
|
2022-10-12 13:09:57 -04:00
|
|
|
AuthenticationBanned({required this.error});
|
2020-01-08 14:26:34 +02:00
|
|
|
|
|
|
|
final String error;
|
2020-01-04 21:31:52 +02:00
|
|
|
}
|
|
|
|
|