© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3mo ago•
8 replies
Wes

cannot send otp via SMS with Twilio

auth
This code works if I'm running Supabase locally thru the CLI, but doesn't work in production. I copied the Twilio account SID, auth token, and message service SID from production into my local config to make sure that there are no typos.

const { data, error } = await signInWithOTP({
  phone: options.phone,
  options: { channel: "sms", shouldCreateUser: true },
});
const { data, error } = await signInWithOTP({
  phone: options.phone,
  options: { channel: "sms", shouldCreateUser: true },
});


Both calls return the same response:
{
    "data": {
        "user": null,
        "session": null
    },
    "error": null
}
{
    "data": {
        "user": null,
        "session": null
    },
    "error": null
}


When running locally the text comes thru instantly. In production I see no errors and the auth logs appear fine, but the text msg never arrives.
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

SMS-Hook with Twilio Verify
SupabaseSSupabase / help-and-questions
4mo ago
Cannot send invitation via SMTP
SupabaseSSupabase / help-and-questions
5mo ago
Auth “Send SMS” Hook: /otp fails with missing auth.otp_attempts → verifyOtp “token expired or invali
SupabaseSSupabase / help-and-questions
5mo ago
OTP with Twilio not sent during signInWithOtp
SupabaseSSupabase / help-and-questions
5mo ago