Hey guys, I am currently working on system for law firm that requires authentication. I am using default directus auth, no external providers hosted on directus cloud.
One of the client's requirement is MFA. My problem is - I created my own implementation for password reset. It works pretty much the same like in directus. We send reset token to a user, verify the token and change user's password. The question is - is there a way to invoke otp verification before password reset (endpoint, external library)? I noticed there are 'generate , enable, disable' endpoints but cannot find anything to verify MFA code. The point is that a user shouldn't be allowed to make any changes to his account before he passes the MFA verification because if the user's email gets stolen the MFA doesn't prevent an attacker from modifying the user's data, right? Sorry, if I am missing something. It's my first time doing this kind of stuff. Ty in advance for any advice!