TF-3826 Try guessing webfinger when dns look up fail

This commit is contained in:
DatDang
2025-06-23 15:29:33 +07:00
committed by Dat H. Pham
parent d57b4cdb63
commit c558f89bd7
12 changed files with 357 additions and 2 deletions
@@ -13,6 +13,10 @@ class DNSLookupToGetJmapUrlSuccess extends UIState {
}
class DNSLookupToGetJmapUrlFailure extends FeatureFailure {
DNSLookupToGetJmapUrlFailure(
dynamic exception, {
required this.email,
}) : super(exception: exception);
DNSLookupToGetJmapUrlFailure(dynamic exception) : super(exception: exception);
final String email;
}
@@ -0,0 +1,18 @@
import 'package:core/presentation/state/failure.dart';
import 'package:core/presentation/state/success.dart';
import 'package:model/oidc/response/oidc_response.dart';
class TryingGuessingWebFinger extends LoadingState {}
class TryGuessingWebFingerSuccess extends UIState {
TryGuessingWebFingerSuccess(this.oidcResponse);
final OIDCResponse oidcResponse;
@override
List<Object?> get props => [oidcResponse];
}
class TryGuessingWebFingerFailure extends FeatureFailure {
TryGuessingWebFingerFailure({super.exception});
}