we have configured MFA for our tenet using the Library with our post-login,
we have successful configured the MFA , the issue we are facing is when we try to delete/disable the MFA for a user its not getting deleted/disable for the user even through we are getting the positive response, 204
Multi-factor provider successfully deleted for user. as per this doc form auth0 Delete a User’s Multi-factor Provider
can anybody assist us on this why we are facing this porblem.
Welcome back to the Auth0 Community and thank you for your post.
I have tested this on my end and you are able to achieve this with a post-login Action. You can identify the user by either querying event.user.email or event.user.name or by any metadata attributes and pass the api.multifactor.enable("none") method.
hi @remus.ivan the MFA configuration and everything is working fine. but our major issue is for resetting the mfa for a user using API. can you please provide the API or any docs through which we can achieve this.
You can also use the DELETE /api/v2/users/{id}/authentication-methods endpoint from the Management API to achieve this, but also when having admin rights you can use Auth0 Dashboard directly to delete/reset a user’s MFA.
Please check out this article from our documentation.