© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•6mo ago•
8 replies
rajat

Failed to get SMS provider

I am trying to test SMS MFA using a local instance of supabase (v2.34.3). Below is my configuration

[auth.sms.test_otp]
"my_phone_number" = "123456"

# Configure MFA via Phone Messaging
[auth.mfa.phone]
enroll_enabled = true
verify_enabled = true
otp_length = 6
template = "Your code is {{ .Code }}"
max_frequency = "5s"
[auth.sms.test_otp]
"my_phone_number" = "123456"

# Configure MFA via Phone Messaging
[auth.mfa.phone]
enroll_enabled = true
verify_enabled = true
otp_length = 6
template = "Your code is {{ .Code }}"
max_frequency = "5s"


I'm able to enroll a SMS factor but am getting the following error when calling the challenge API

code: "unexpected_failure"
name: "AuthApiError"
status: 500
__isAuthError: true
message: "Failed to get SMS provider"
code: "unexpected_failure"
name: "AuthApiError"
status: 500
__isAuthError: true
message: "Failed to get SMS provider"

do i need to set a provider in my config.toml? if so—how can I do that? I've previously attempted the above configuration in combination with a dummy twilio provider configuration and was getting a AuthAPIError (500)

[auth.sms.twilio]
enabled = true
account_sid = ""
message_service_sid = ""
auth_token = ""
[auth.sms.twilio]
enabled = true
account_sid = ""
message_service_sid = ""
auth_token = ""
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

Custom SMS Provider for AUTH
SupabaseSSupabase / help-and-questions
4y ago
Phone provider with SMS sending hook always raises errors
SupabaseSSupabase / help-and-questions
13mo ago
Unable to Get Provider Refresh Token for Google
SupabaseSSupabase / help-and-questions
4y ago
I want to use Custom sms provider when doing registration with phone verifying otp
SupabaseSSupabase / help-and-questions
8mo ago