I do not want the users to be prompted for enrolling in MFA. Rather I want them to be auto enrolled using the phone number available in the user_profile.
I tried to create a custom action to do this after login using the mfa/associate api. This however needs a mfa_token to go through.
I did call /oauth/token, but it gives just the error 403-MFA required. But I am not able to extract the mfa_token from the error.
Is there any way to auto enroll the users for MFA(SMS) using the number in the userprofile/custom database