Hi,
Try the below module
https://marketplace.mendix.com/link/component/109621
Also, check the below forum answers for OTP Generation
https://forum.mendix.com/link/questions/95132
Hope it helps!!!