Skillpedia
واجهات API والخوادم (backend)41k · #6983

setting-up-supabase-auth-emails

ما الذي تفعله

ترشدك هذه المهارة إلى إرسال رسائل تسجيل الدخول والتسجيل من Supabase عبر قوالب بريد PostHog. وهي موجهة إلى المطورين الذين يديرون مشروع Supabase ويريدون إدارة تلك الرسائل من PostHog.

متى تستخدمها

  • ✓عندما تريد أن ترسل رسائل التسجيل أو الدخول في Supabase عبر قوالب PostHog.
  • ✓عندما يعرض Supabase حداً لمعدل الرسائل أو خطأً في رسائل المصادقة.
  • ✓عندما تريد اختبار خطّاف البريد في Supabase أو إصلاحه.

رابط المهارة

https://github.com/PostHog/posthog/blob/master/products/workflows/skills/setting-up-supabase-auth-emails/SKILL.md

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/PostHog/posthog/blob/master/products/workflows/skills/setting-up-supabase-auth-emails/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“من فضلك اربط مشروع Supabase لدينا حتى ترسل رسائل التسجيل عبر قوالب PostHog، دون أن تعطّل التسجيلات.”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

يقرأ الوكيل إعدادات البريد الحالية، ويطرح عليك بعض الأسئلة أولاً. ثم يرشدك خطوة بخطوة عبر خطوات Supabase بترتيب محدد، لأنك تجري هذه التغييرات بنفسك في لوحة Supabase.

المحتوى التقني (ملف SKILL.md الأصلي)

النص الأصلي من المؤلف، مباشرة من GitHub.

Setting up Supabase auth emails

Supabase calls PostHog's Send Email Hook for each auth email. The user does the Supabase steps by hand, so tell them exactly what to click, and keep the order below.

If the Supabase MCP server is connected, use it to read the project URL (step 4) and the logs (when a hook call fails). It has no tools for Auth settings. Leave the hook and the rate limit to the user even if you have other Supabase access, because those settings send every sign-up email.

The tools are behind a beta flag. If supabase-auth-emails-settings-get isn't available, tell the user the feature isn't enabled for their project yet and stop.

The setup

  1. Read the current state. Call supabase-auth-emails-settings-get. Keep the hook_url, the email_types list and the current templates mapping. If the project is already set up, change only what the user asked for.
  2. Ask the user's choices in one go. Ask these together, before any change. Use the client's multiple-choice question tool if it has one. Skip any question the state from step 1 already answers.
    • Project: with no Supabase MCP, ask for the Supabase dashboard link of the project (supabase.com/dashboard/project/<project-ref>).
    • Templates: create PostHog's starter templates, or use templates they already have.
    • Hook secret: paste it into the chat, or enter it in PostHog themselves.
  3. Check the email sender. The templates need an email channel with a verified sending domain. Follow the setup check in the building-workflows skill's onboarding reference.
  4. Save the project URL. With the Supabase MCP, call get_project_url. Otherwise it is https://<project-ref>.supabase.co. For a self-hosted project or a custom domain, ask the user for the URL their app uses to reach Supabase Auth. Save it with supabase-auth-emails-settings-update.
  5. Have the user create the hook in Supabase, switched off. While the hook is on, any hook failure fails the user's sign-up or password reset. Give them the hook_url and these steps:
    • Open Authentication > Hooks, add a Send Email hook, and choose HTTPS.
    • Paste the hook URL as the endpoint.
    • Click Generate secret and copy the whole value.
    • Leave Enable Send Email hook off, and save.
  6. Save the hook secret. Never invent a hook secret. If a secret is already stored, leave hook_secret out to keep it, and ask before you replace it. Never send it blank, because a blank value clears it.
    • In the chat: save it with supabase-auth-emails-settings-update. Don't repeat it back in your reply.
    • In PostHog: give the user a link to /workflows/channels?setup=supabase in their PostHog app. It opens the Supabase setup. They paste the secret and click Save connection. Then call supabase-auth-emails-settings-get and confirm has_hook_secret is true.
  7. Map the templates, as the user chose in step 2:
    • Starter templates. Call supabase-auth-emails-starter-templates-create. It creates and maps a template for each email type with has_starter_template that has no usable one yet. If it fails for want of a verified sender, go back to step 3. To change a template's copy or styling, use the designing-email-templates skill.
    • Existing templates. List them with workflows-list-email-templates, keep the ones that are transactional and marked sensitive, and ask the user which one sends each email. A template that is neither can't be mapped yet. Ask before you make one transactional, because that can't be undone. Send the mapping with supabase-auth-emails-settings-update. Build templates from the step 1 mapping with your changes merged in, because the field replaces the whole mapping. Ask before you unmap a template that already sends.
  8. Check before the hook goes live. In the response of your last call, confirm supabase_url is set, has_hook_secret is true, and every core email type in the email_types list from step 1 has a template. The write responses leave that list out. Core types are the ones that don't end in _notification. A core type with no template fails the user's action. A notification with no template is skipped.
  9. Have the user turn the hook on. In Supabase, edit the Send Email hook, switch on Enable Send Email hook, and save. PostHog can't see whether the hook is on, so the Connected status on the Supabase card only means the connection is saved.
  10. **Have the
الأسئلة الشائعة

هل يستطيع الوكيل تغيير الخطّاف في Supabase نفسه؟

لا. يترك الوكيل هذه الإعدادات لك، لأنها تؤثر في كل رسالة تسجيل.

هل هذه الميزة متاحة دائماً؟

ليس دائماً. هي خلف علامة beta، وسيخبرك الوكيل بذلك إذا لم تكن مفعّلة لمشروعك.

كيف تُشارَك سرّ الخطّاف؟

يمكنك لصقه في المحادثة أو إدخاله في PostHog بنفسك.

التفاصيل

الوصف الأصلي من المؤلف

Connect a Supabase project so its auth emails send through PostHog email templates via the Supabase Send Email Hook, in an order that never breaks a sign-up. Use when asked to set up, connect, test, or fix Supabase auth emails, Supabase email templates, or the Supabase Send Email Hook, or when Supabase shows "email rate limit exceeded" or an auth email error.

repo: PostHog/posthog

الشعبية

نجوم GitHub
41k
الترتيب
#6983
الترخيص
—
آخر تحديث
2‏/11‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة