File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
packages/amplify_core/lib/src/config Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,10 @@ enum MfaMethod {
11
11
sms,
12
12
13
13
@JsonValue ('TOTP' )
14
- totp;
14
+ totp,
15
+
16
+ @JsonValue ('EMAIL' )
17
+ email;
15
18
16
19
/// The value to pass to `Amplify.Auth.confirmSignIn` when
17
20
/// selecting an MFA type.
Original file line number Diff line number Diff line change @@ -9,7 +9,10 @@ enum MfaType {
9
9
sms,
10
10
11
11
@JsonValue ('TOTP' )
12
- totp;
12
+ totp,
13
+
14
+ @JsonValue ('EMAIL' )
15
+ email;
13
16
14
17
/// The value to pass to `Amplify.Auth.confirmSignIn` when
15
18
/// selecting an MFA type.
@@ -21,6 +24,7 @@ extension ToMfaMethod on MfaType {
21
24
return switch (this ) {
22
25
MfaType .sms => MfaMethod .sms,
23
26
MfaType .totp => MfaMethod .totp,
27
+ MfaType .email => MfaMethod .email,
24
28
};
25
29
}
26
30
}
You can’t perform that action at this time.
0 commit comments