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_smshook 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:- User clicks Send code: Call
sendOTP(phone). superun Cloud sends SMS via the preconfigured hook. - User enters code and signs in: Call
verifyOTP(phone, token)to finish verification.
How it works
- User starts SMS verification:
signInWithOtp()requests phone verification; Supabase generates an OTP - Hook runs automatically: The preconfigured
send_smshook on superun Cloud handles the event - SMS is sent: The hook sends the code through superun Gateway
- 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.

