I’m currently working on a project using WeWeb and XANO, and I’m looking to implement SMS-based OTP (One-Time Password) authentication. The idea is to allow users to log in using their phone number, receive an OTP via SMS, and then verify their login by entering the OTP.
Has anyone implemented SMS OTP authentication using WeWeb, XANO, and a third-party SMS service? I would love to hear how you approached it or if there are any best practices to consider. Is this something feasible with the current WeWeb workflow, and how well does it integrate with XANO?
Any insights or advice would be greatly appreciated!
With Xano, the simplest way would be to just use a (random) SMS API service. If you search for that there’s endless options. Your work flow would be something like:
Submit username via Weweb to Xano
Do your checks in Xano (active member, etc.)
Generate and store random code in user table
Trigger SMS api and send that random code
Have the user submit that random code via Weweb to Xano (via the Xano auth action)
Check random code in Xano (perhaps that it’s within X minutes of creation) and login