mirror of
https://github.com/supabase/supabase.git
synced 2026-10-07 02:15:05 +03:00
Revert "feat: add twilio verify docs"
This commit is contained in:
1 parent
8bd0c52c49
commit
18eb67c8d2
1 file changed
+5
-33
@@ -7,42 +7,16 @@ export const meta = {
|
||||
video: 'https://www.youtube.com/v/akScoPO01bc',
|
||||
}
|
||||
|
||||
## Overview
|
||||
|
||||
In this guide we'll show you how to authenticate your users with SMS based One-Time Password (OTP) tokens.
|
||||
|
||||
There are two reasons to use Supabase SMS OTP tokens:
|
||||
|
||||
- You want users to log in with a phone number and password, and verify the phone number on signup with SMS
|
||||
- You want users to log in with a phone number ONLY (i.e. passwordless login)
|
||||
- You want users to log in with mobile number + password, and the mobile number should be verified via SMS
|
||||
- You want users to log in with mobile number ONLY (i.e. passwordless login)
|
||||
|
||||
What you'll need:
|
||||
|
||||
- Twilio account ([sign up](https://www.twilio.com/try-twilio))
|
||||
- Supabase project (create one [here](https://supabase.com/dashboard))
|
||||
- Mobile phone capable of receiving SMS
|
||||
|
||||
SMS Authentication can be done with either Twilio Verify or Twilio Programmable Messaging. [Twilio Verify](https://www.twilio.com/en-us/trusted-activation/verify) is a specialized OTP solution and is recommended for most developers that need over-the-phone authentication. Alternatively you can use [Twilio Programmable Messaging](https://www.twilio.com/docs/messaging) which offers generic SMS sending support.
|
||||
|
||||
## Twilio Verify
|
||||
|
||||
To set up Twilio Verify, you will need to:
|
||||
|
||||
1. Create a new [verification service](https://support.twilio.com/hc/en-us/articles/360033309133-Getting-Started-with-Twilio-Verify-V2) in the Twilio dashboard.
|
||||
2. [Switch Phone Provider to Twilio Verify](https://supabase.com/dashboard/project/_/auth/providers)
|
||||
3. Configure the Message Service ID field using the Verification Service ID obtained in 1.
|
||||
|
||||
When using Twilio Verify, OTPs are generated by Twilio. This means that:
|
||||
|
||||
- Unlike other providers, the OTP expiry duration and message content fields are not configurable via the Supabase dashboard. Please head to Twilio Verify to configure these settings.
|
||||
- The token remains the same during its validity period until the verification is successful. This means if your user make another request within that period, they will receive the same token.
|
||||
- Twilio Verify has a separate set of rate limits that apply. Visit Twilio's [Rate Limit and Timeouts page](https://www.twilio.com/docs/verify/api/rate-limits-and-timeouts) to find out more.
|
||||
|
||||
<Admonition type="caution">
|
||||
At this time, Twilio Verify is only supported on the `whatsapp` and `sms` channels.
|
||||
</Admonition>
|
||||
|
||||
## Twilio (Programmable Messaging)
|
||||
|
||||
In this section we'll cover:
|
||||
We'll cover:
|
||||
|
||||
- [Finding your Twilio credentials](#finding-your-twilio-credentials)
|
||||
- [Using OTP with password based logins](#using-otp-with-password-based-logins)
|
||||
@@ -375,8 +349,6 @@ let { data, error } = await supabase.auth.verifyOtp({
|
||||
|
||||
## Resources
|
||||
|
||||
- [Reasons to use Twilio Verify](https://www.twilio.com/blog/9-reasons-to-use-the-verify-api)
|
||||
- [Twilio Verify Documentation](https://www.twilio.com/docs/verify)
|
||||
- [Twilio Signup](https://www.twilio.com/try-twilio)
|
||||
- [Supabase Dashboard](https://supabase.com/dashboard)
|
||||
- [Supabase Row Level Security](/docs/guides/auth#row-level-security)
|
||||
|
||||
Reference in new issue
Block a user