SupabaseS
Supabase5mo ago
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"


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"

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 = ""
Was this page helpful?