File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
packages/authenticator/amplify_authenticator Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,8 @@ import 'sign_in_mfa_sms_email_test.dart' as sign_in_mfa_sms_email_tests;
19
19
import 'sign_in_mfa_sms_test.dart' as sign_in_mfa_sms_tests;
20
20
import 'sign_in_mfa_sms_totp_test.dart' as sign_in_mfa_sms_totp_tests;
21
21
import 'sign_in_mfa_totp_test.dart' as sign_in_mfa_totp_tests;
22
- import 'sign_in_mfa_username_login_test.dart' as sign_in_mfa_username_login_tests;
22
+ import 'sign_in_mfa_username_login_test.dart'
23
+ as sign_in_mfa_username_login_tests;
23
24
import 'sign_in_with_email_test.dart' as sign_in_with_email_tests;
24
25
import 'sign_in_with_phone_test.dart' as sign_in_with_phone_tests;
25
26
import 'sign_in_with_username_test.dart' as sign_in_with_username_tests;
Original file line number Diff line number Diff line change @@ -543,7 +543,8 @@ class StateMachineBloc
543
543
yield * const Stream .empty ();
544
544
}
545
545
546
- Future <UnauthenticatedState > _handleMfaSetupSelection (SignInResult result) async {
546
+ Future <UnauthenticatedState > _handleMfaSetupSelection (
547
+ SignInResult result) async {
547
548
final allowedMfaTypes = result.nextStep.allowedMfaTypes;
548
549
549
550
if (allowedMfaTypes == null ) {
@@ -556,7 +557,8 @@ class StateMachineBloc
556
557
final mfaTypesForSetup = allowedMfaTypes.toSet ()..remove (MfaType .sms);
557
558
558
559
if (mfaTypesForSetup.length != 1 ) {
559
- return ContinueSignInWithMfaSetupSelection (allowedMfaTypes: allowedMfaTypes);
560
+ return ContinueSignInWithMfaSetupSelection (
561
+ allowedMfaTypes: allowedMfaTypes);
560
562
}
561
563
562
564
final mfaType = mfaTypesForSetup.first;
You can’t perform that action at this time.
0 commit comments