From aff743965006b3a97807225d29c52226511c8da9 Mon Sep 17 00:00:00 2001 From: Abdelrrahman Elhaddad Date: Tue, 11 Feb 2025 17:34:20 +0200 Subject: [PATCH] docs: update README and example.env to include Twilio Verify credentials --- README.md | 10 +++++++++- example.env | 4 ++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 08be82ba4..51e064941 100644 --- a/README.md +++ b/README.md @@ -680,14 +680,22 @@ Controls the number of digits of the sms otp sent. `SMS_PROVIDER` - `string` -Available options are: `twilio`, `messagebird`, `textlocal`, and `vonage` +Available options are: `twilio`, `twilio_verify`, `messagebird`, `textlocal`, and `vonage` Then you can use your [twilio credentials](https://www.twilio.com/docs/usage/requests-to-twilio#credentials): +#### Twilio Messaging + - `SMS_TWILIO_ACCOUNT_SID` - `SMS_TWILIO_AUTH_TOKEN` - `SMS_TWILIO_MESSAGE_SERVICE_SID` - can be set to your twilio sender mobile number +#### Twilio Verify + +- `SMS_TWILIO_VERIFY_ACCOUNT_SID` +- `SMS_TWILIO_VERIFY_AUTH_TOKEN` +- `SMS_TWILIO_VERIFY_MESSAGE_SERVICE_SID` + Or Messagebird credentials, which can be obtained in the [Dashboard](https://dashboard.messagebird.com/en/developers/access): - `SMS_MESSAGEBIRD_ACCESS_KEY` - your Messagebird access key diff --git a/example.env b/example.env index e645c96e9..afa7fb898 100644 --- a/example.env +++ b/example.env @@ -183,6 +183,10 @@ GOTRUE_SMS_PROVIDER="twilio" GOTRUE_SMS_TWILIO_ACCOUNT_SID="" GOTRUE_SMS_TWILIO_AUTH_TOKEN="" GOTRUE_SMS_TWILIO_MESSAGE_SERVICE_SID="" +GOTRUE_SMS_PROVIDER="twilio_verify" +GOTRUE_SMS_TWILIO_VERIFY_ACCOUNT_SID="" +GOTRUE_SMS_TWILIO_VERIFY_AUTH_TOKEN="" +GOTRUE_SMS_TWILIO_VERIFY_MESSAGE_SERVICE_SID="" GOTRUE_SMS_TEMPLATE="This is from supabase. Your code is {{ .Code }} ." GOTRUE_SMS_MESSAGEBIRD_ACCESS_KEY="" GOTRUE_SMS_MESSAGEBIRD_ORIGINATOR=""