Does 'POST /api/two-factor/start' also send out mails/sms
-
I have only tested the authenticator method for mfa.
But when I wanted to change my password after enabling the authenticator mfa, it required me to complete an mfa challenge. After reading the docs I figured out I'm required to request toPOST /api/two-factor/start
. Which I did with the userId. This returns a code, array of configured mfa methods and a two factor id. The part that made me ask this question is that there's a validcode
being returned. This made me wonder if you have to send out the mfa mail/sms yourself or does FusionAuth does this for you. (I am assuming it does when hittingPOST /api/login
when mfa is enabled). -
Thanks for the question! I believe that you might want to reference this bit of doco
https://fusionauth.io/docs/v1/tech/guides/multi-factor-authentication#optionally-send-the-code
Thanks,
Josh