Hey,
I’m working on a Post-Login Action in my Auth0 tenant where I need to send an email to the user after they successfully enroll in MFA using the enrollWith method. However, I’m facing challenges ensuring the email is sent reliably only after MFA enrollment is completed.
I want to ensure:
- The email is sent only after MFA enrollment is successful.
- Other actions in the Post-Login flow are not affected by the MFA enrollment logic.
Here are my specific questions:
- How can I reliably detect that MFA enrollment has been completed within the Post-Login Action?
- How can I structure my Post-Login Action to ensure other actions run independently of the MFA enrollment logic?
If anyone has experience implementing this or can point me to relevant documentation/examples, I’d greatly appreciate it!
Thanks in advance for your help!