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
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
when calling Auth.setPreferredMFA(user, 'TOTP'); an error is reported that the user does not have a phone number setup.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn't have dependencies other than AWS Amplify.
Signup a user with a username and email
Setup TOTP and verify token
Then call Auth.setPreferredMFA(user, 'TOTP');
What is the expected behavior?
No error is returned
Which versions of Amplify, and which browser / OS are affected by this issue? Did this work in previous versions?
0.4
You can turn on the debug mode to provide more info for us by setting window.LOG_LEVEL = 'DEBUG'; in your app.
The error comes from line 394 in Auth.ts:
user.setUserMfaPreference(smsMfaSettings, totpMfaSettings, (err, result) =>
if smsMfaSettings is set to null instead of {PreferredMfa : false,Enabled : false} the server reacts as expected. This is probably a bug on the server side, not respecting the Enabled: false, but the only way to get the expected result is to pass null here.
The text was updated successfully, but these errors were encountered:
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
when calling Auth.setPreferredMFA(user, 'TOTP'); an error is reported that the user does not have a phone number setup.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn't have dependencies other than AWS Amplify.
Signup a user with a username and email
Setup TOTP and verify token
Then call Auth.setPreferredMFA(user, 'TOTP');
What is the expected behavior?
No error is returned
Which versions of Amplify, and which browser / OS are affected by this issue? Did this work in previous versions?
0.4
You can turn on the debug mode to provide more info for us by setting
window.LOG_LEVEL = 'DEBUG';
in your app.The error comes from line 394 in Auth.ts:
user.setUserMfaPreference(smsMfaSettings, totpMfaSettings, (err, result) =>
if smsMfaSettings is set to null instead of {PreferredMfa : false,Enabled : false} the server reacts as expected. This is probably a bug on the server side, not respecting the Enabled: false, but the only way to get the expected result is to pass null here.
The text was updated successfully, but these errors were encountered: