Hello víctor arranz,
Thank you for posting your query in the Microsoft Q&A Community.
I understand that you would like to create an Azure AD B2C Custom policy for passwordless authentication.
The scenario you described above is possible. Kindly follow the link to get the Sample custom policy configuration files.
https://github.com/azure-ad-b2c/samples?tab=readme-ov-file#passwordless
Let me know if further assistance is needed.
Babafemi