Hi @Gola, Mariusz,
Based on your query, here is my understanding: You would like to auto generate the SMS verification code for Azure AD B2C using custom policies.
Azure AD B2C two-step verification works with two technical profiles, "Generate code
" and "Verify code
". As you would like to auto generate the code without clicking on any button which may not be possible to perform using any custom policy. Azure AD B2C do not have any kind of customization that can help you in generating a verification without clicking on "Send Verification Code
".
Here are the available features for customization using JavaScript: Enable JavaScript and page layout versions in Azure Active Directory B2C.
Customize template for MFA using html
I hope this information is helpful. Please feel free to reach out if you have any further questions.
If the answer is helpful, please click "Accept Answer" and kindly "upvote it". If you have extra questions about this answer, please click "Comment"