Skip to content

Commit 764f16d

Browse files
committed
chore: fix mfaType switch statement to reflect new name
1 parent e69d96b commit 764f16d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/auth/amplify_auth_cognito_dart/lib/src/sdk/sdk_bridge.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,7 @@ extension on String {
887887
MfaType get mfaType => switch (this) {
888888
'SOFTWARE_TOKEN_MFA' => MfaType.totp,
889889
'SMS_MFA' => MfaType.sms,
890-
'EMAIL_MFA' => MfaType.email,
890+
'EMAIL_OTP' => MfaType.email,
891891
final invalidType => throw StateError('Invalid MFA type: $invalidType'),
892892
};
893893
}

0 commit comments

Comments
 (0)