Trying to figure out how I can use OTP based authentication with bubble. Here’s the desired flow:
- Admin user creates a “Customer User” with email
- Customer User enters their email on a login page
- Customer User receives a One Time Code through Twilio (Via API)
- Customer User enters the Code on the login page
- They are authenticated.
The issue I’m facing is how do I create an account for a user, which they can authenticate against without a password. Here’s what I’ve tried and the issues I’ve faced:
- “Create an account for someone else” + Magic Link = Authentication works, but we ran into several issues with corporate firewalls invalidating the link
- “Create an account for someone else” + “Assign Temp password” = Don’t have a way to then log the user in, when they provide the correct OTP, since “Log the user in” requires a password.
Would love to hear if anyone has implemented a workable solution.
PS - We’re following best practices with Twilio, meaning we don’t have access to the exact code sent to the user.