Supabase Send SMS Hook lets developers use any OTP provider for phone auth
Supabase supports phone-based authentication but limits built-in SMS providers to a short list, leaving some developers without a direct option. A feature called the Send SMS Hook allows any compatible external endpoint to handle OTP delivery by receiving the code and phone number via an HTTPS POST from Supabase. Developers configure the hook inside the Supabase Authentication settings by generating a secret, then supplying the resulting URL from their chosen provider. Requests are signed using the Standard Webhooks scheme, and the endpoint must return an empty 200 response to signal success. The same hook can also route one-time codes through WhatsApp or Telegram, with no changes required on the Supabase client side.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in