You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`SOFTWARE_TOKEN_MFA`: The user needs to input the OTP(one time password). You can submit the code by `Auth.confirmSignIn`.
105
105
-`NEW_PASSWORD_REQUIRED`: This happens when the user account is created through the Cognito console. The user needs to input the new password and required attributes. You can submit those data by `Auth.completeNewPassword`.
106
106
-`MFA_SETUP`: This happens when the MFA method is TOTP(the one time password) which requires the user to go through some steps to generate those passwords. You can start the setup process by `Auth.setupTOTP`.
107
+
-`SELECT_MFA_TYPE`: This happens when both SMS and TOTP methods are enabled but neither is set as preferred. You can set up your front-end application to let users choose what type they want to use
108
+
in the current session and set it using `user.sendMFASelectionAnswer` function.
107
109
108
110
The following code is only for demonstration purpose:
109
111
@@ -146,6 +148,21 @@ async function signIn() {
146
148
// The user needs to setup the TOTP before using it
Copy file name to clipboardExpand all lines: src/fragments/lib/auth/js/react-native-mfa.mdx
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -92,6 +92,8 @@ ChallengeName:
92
92
-`SOFTWARE_TOKEN_MFA`: The user needs to input the OTP(one time password). You can submit the code by `Auth.confirmSignIn`.
93
93
-`NEW_PASSWORD_REQUIRED`: This happens when the user account is created through the Cognito console. The user needs to input the new password and required attributes. You can submit those data by `Auth.completeNewPassword`.
94
94
-`MFA_SETUP`: This happens when the MFA method is TOTP(the one time password) which requires the user to go through some steps to generate those passwords. You can start the setup process by `Auth.setupTOTP`.
95
+
-`SELECT_MFA_TYPE`: This happens when both SMS and TOTP methods are enabled but neither is set as preferred. You can set up your front-end application to let users choose what type they want to use
96
+
in the current session and set it using `user.sendMFASelectionAnswer` function.
95
97
96
98
The following code is only for demonstration purpose:
97
99
@@ -134,6 +136,21 @@ async function signIn() {
134
136
// The user needs to setup the TOTP before using it
0 commit comments