File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
packages/auth/amplify_auth_cognito_dart/lib/src/state/machines Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -660,7 +660,10 @@ final class SignInStateMachine
660
660
final allowedMfaTypes = _allowedMfaTypes;
661
661
// Exclude MfaType.sms from consideration
662
662
final mfaTypesForSetup = allowedMfaTypes? .difference ({MfaType .sms});
663
- if (allowedMfaTypes == null || allowedMfaTypes.isEmpty || mfaTypesForSetup == null || mfaTypesForSetup.isEmpty) {
663
+ if (allowedMfaTypes == null ||
664
+ allowedMfaTypes.isEmpty ||
665
+ mfaTypesForSetup == null ||
666
+ mfaTypesForSetup.isEmpty) {
664
667
throw const InvalidUserPoolConfigurationException (
665
668
'No eligible MFA types are allowed for setup.' ,
666
669
recoverySuggestion: 'Check your user pool MFA configuration.' ,
You can’t perform that action at this time.
0 commit comments