Different UI for MFA

Hi There!

Thank you for posting your question, generally speaking api.multifactor.enable() is the old way and usually it is used on it’s own, it handles enrolment and challenge.

enrollWithAny() is the new way designed to be used alongside challengeWith() or challengeWithAny() see docs here →

  1. This is expected behaviour based on the difference between “new” and “old” methods

  2. The best way to check if the login is a sign-up in the post-login action is to check the event.stats.logins_count. If it is equal to 1, then a sign-up event is taking place

Thanks
Dawid