Home · Guides

Supabase phone sign-in for Israel

Supabase Auth can send its codes and letters through Otipi. You add two hooks in the Supabase dashboard, and your users get SMS and email in their language: Hebrew, Arabic, Russian or English.

At a glance

Hooks
Send SMS and Send Email, HTTP type
Security
Standard Webhooks signature, checked on every call
Emails
Signup, magic link, recovery, email change, invite
Languages
Hebrew, Arabic, Russian and English
Setup
About 5 minutes, no code

What you need

A Supabase project of your own and an Otipi account. The hook address and its secret are on the Connect page of the dashboard, one pair for the whole account.

Add the SMS hook

In Supabase open Authentication, then Hooks, and add a Send SMS hook of the HTTP type. Paste the address and the secret from Otipi. Phone sign-in in your app now sends its codes through Otipi.

Add the email hook

Add a Send Email hook the same way. Letters for signup, magic link, password recovery and email change go from your own domain, in the language of the user.

Check it

Sign in with your own phone number. The code arrives by SMS, and the message shows up in the Otipi log with its status.

Example

Supabase > Authentication > Hooks > Send SMS hook
Type:   HTTPS
URL:    https://otipi.co.il/v1/integrations/supabase/sms/<token>
Secret: v1,whsec_...

Supabase > Authentication > Hooks > Send Email hook
Type:   HTTPS
URL:    https://otipi.co.il/v1/integrations/supabase/email/<token>
Secret: v1,whsec_...

Questions

Does it work with Lovable Cloud?

The built-in phone sign-in of Lovable Cloud supports only its own list of providers. With a Supabase project of your own the hooks work as described here.

Do I pay for Supabase SMS?

No. Supabase hands the code to Otipi, and the SMS counts toward your Otipi plan.

Is every call checked?

Yes. Supabase signs each call and Otipi refuses calls without a valid signature or key. A repeated call is handled once.

Try it in a minute

A free test key right away, no card. Test codes go to your own phone and email.

Get a test key Read the docs

More guides