Auth Hooks
Drop-in Send Email / Send SMS hooks. Supabase verifies; Zindua delivers.

Auth email and WhatsApp from Edge Functions. Auth Hooks or your own OTP store. Supabase verifies. You send from your Gmail and WhatsApp. Guide v1.0.0.
npm install @zindua/sdkDrop-in Send Email / Send SMS hooks. Supabase verifies; Zindua delivers.

No Twilio required. Map phone OTP to WhatsApp on your Zindua line.

Send from your Gmail / SMTP / Outlook - not a locked ESP network.

Optional Track B: hash OTP in Postgres + Edge Functions you control.

ZINDUA_API_KEY lives in Edge secrets. Never NEXT_PUBLIC_.

Dashboard → Integrations → Connect to Supabase. OAuth pushes Edge secrets for you.

Dashboard
Pick a step. Screenshots of Integrations, then the Supabase authorize screen. Tap Zoom.
Choose a path
Same Zindua send API. Different ownership of OTP verify.
Supabase generates and verifies OTP / magic links. Your Edge Function only calls POST /send.
When: signInWithOtp, recovery, confirm signup, phone Auth
examples/supabase-auth-hooks Download zipYou hash OTP in Postgres, send via Zindua, verify in Edge. Full control outside Phone Auth.
When: Custom login, multi-tenant B2B, WhatsApp without Supabase Phone
examples/supabase-otp Download zipExamples
Edge send, secrets, Auth Hooks, Postgres, or client invoke. Same Zindua send().
Edge send
POSTDeno Edge fetch to POST /send. SDK is Node-oriented.
// Deno Edge - prefer fetch (SDK is Node-oriented)const res = await fetch("https://zindua.run/api/v1/send", { method: "POST", headers: { Authorization: `Bearer ${Deno.env.get("ZINDUA_API_KEY")}`, "Content-Type": "application/json", }, body: JSON.stringify({ to: "user@example.com", template: "otp-verification", channel: "email", variables: { code: "482910", otp: "482910" }, }),});Reference
Step through setup, then secrets, Resend, errors, and security.
Four steps, then a pre-deploy checklist.
Create a Zindua project
Dashboard → project → copy znd_live_ / znd_test_ key. Connect email Service and/or WhatsApp QR. Create template otp-verification with {{code}}.
Connect from the dashboard to push Edge secrets, or download a starter and deploy Auth Hooks yourself.