Skip to main content

superun SMS Provider

This guide explains SMS phone verification through superun Cloud. When superun Cloud is running, phone login is enabled automatically and verification hooks are configured for you.

Overview

superun Cloud handles SMS verification setup:
  • Phone login auto-enabled: When superun Cloud starts, phone verification turns on
  • Preconfigured verification hook: The send_sms hook connects to superun Gateway automatically
  • No manual hook setup: You do not create Edge Functions or wire hooks yourself
  • Ready to use: Implement the client verification flow in your app

Client integration

Implement SMS verification on the client — this is the user-facing flow:
Flow:
  1. User clicks Send code: Call sendOTP(phone). superun Cloud sends SMS via the preconfigured hook.
  2. User enters code and signs in: Call verifyOTP(phone, token) to finish verification.

How it works

  1. User starts SMS verificationsignInWithOtp() requests phone verification; Supabase generates an OTP
  2. Hook runs automatically: The preconfigured send_sms hook on superun Cloud handles the event
  3. SMS is sent: The hook sends the code through superun Gateway
  4. User verifies: User enters the code; verifyOtp() completes sign-in
All backend pieces (Edge Functions, hook configuration, webhook verification, SMS gateway) are handled by superun Cloud. You only implement the client flow above.