Configuration
You need a Twilio account to use this feature because all SMS’ are sent through Twilio. Enable the Phone Number (SMS) sign-in method in the Nhost Dashboard under Settings -> Sign-In Methods -> Phone Number (SMS). You need to configure the following:- Account SID
- Auth Token
- Messaging Service SID (or a Twilio phone number)
Sign In
Signing in users with a phone number is a two-step process:1
Request OTP
The user will receive the OTP on the phone number specified.
2
Sign In with OTP
To sign in the user, pass in the OTP received on the previous step.
A user account is created the first time a phone number is used