@joseantonio.rey Below is the query i have in my rule
.
function (user, context, callback) {
var CLIENTS_WITH_MFA = [‘6fwzMn5PgGCNd3L21oD4ZTx4m3G0zni4’];
// run only for the specified applications
// if (CLIENTS_WITH_MFA.indexOf(context.clientID) !== -1) {
// uncomment the following if clause in case you want to request a second factor only from user’s that have user_metadata.use_mfa === true
// if (user.user_metadata && user.user_metadata.use_mfa){
context.multifactor = {
provider: ‘google-authenticator’,
allowRememberBrowser: false
};
i have added “use_mfa”: true for one user and for another user i have added as “use_mfa”: false in the user_metadata. I have disabled the mfa from the dashboard. But i still see the MFA page for both users. Only one user should have the page.Can you please help me with that