File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/auth/amplify_auth_cognito_dart/lib/src/state/machines Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -660,14 +660,14 @@ 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) {
663
+ if (mfaTypesForSetup == null || mfaTypesForSetup .isEmpty) {
664
664
throw const InvalidUserPoolConfigurationException (
665
665
'No eligible MFA types are allowed for setup.' ,
666
666
recoverySuggestion: 'Check your user pool MFA configuration.' ,
667
667
);
668
668
}
669
669
670
- if (mfaTypesForSetup! .length == 1 ) {
670
+ if (mfaTypesForSetup.length == 1 ) {
671
671
final mfaType = mfaTypesForSetup.first;
672
672
if (mfaType == MfaType .totp) {
673
673
_enableMfaType = MfaType .totp;
You can’t perform that action at this time.
0 commit comments