سامانه صدور فاکتور و حسابداری
feat(otp): add isolated Supabase Edge entrypoint (not deployed)
davoodmehraban89 committed
Oct 12, 2026 at 22:41 UTC
92f76b21e25a880f9c428b023a9f04cb9f4dbd03
1 file changed
+8
supabase/functions/finora-kavenegar-send-sms/index.ts
new
+8
@@ -0,0 +1,8 @@
1
+// Server-only Supabase Auth Send SMS Hook entrypoint.
2
+// In a later owner-approved activation, deploy this function with verify_jwt=false
3
+// because GoTrue signs HTTP hooks using Standard Webhooks, not a user JWT.
4
+// All requests MUST pass signed-body verification in handler.mjs.
5
+import {handleFinoraKavenegarSms} from './handler.mjs';
6
+Deno.serve((request: Request) => handleFinoraKavenegarSms(request, {
7
+ env: (name: string) => Deno.env.get(name) || ''
8
+}));