setting-up-supabase-auth-emails
यह क्या करती है
यह स्किल आपको Supabase के लॉगिन और साइन-अप ईमेल PostHog के ईमेल टेम्पलेट के ज़रिए भेजने में मार्गदर्शन देती है। यह उन डेवलपर के लिए है जिनका Supabase प्रोजेक्ट है और जो चाहते हैं कि वे ईमेल PostHog से प्रबंधित हों।
कब इस्तेमाल करें
- ✓जब आप चाहें कि Supabase साइन-अप या लॉगिन ईमेल PostHog टेम्पलेट से भेजे जाएँ।
- ✓जब Supabase ईमेल रेट लिमिट या ऑथेंटिकेशन ईमेल एरर दिखाए।
- ✓जब आप Supabase ईमेल हुक को टेस्ट या ठीक करना चाहें।
Skill का लिंक
https://github.com/PostHog/posthog/blob/master/products/workflows/skills/setting-up-supabase-auth-emails/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“कृपया हमारे Supabase प्रोजेक्ट को जोड़िए ताकि उसके साइन-अप ईमेल PostHog टेम्पलेट से जाएँ, और साइन-अप न टूटें।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट मौजूदा ईमेल सेटिंग पढ़ता है और पहले कुछ सेटअप सवाल पूछता है। फिर वह 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
- Read the current state. Call
supabase-auth-emails-settings-get. Keep thehook_url, theemail_typeslist and the currenttemplatesmapping. If the project is already set up, change only what the user asked for. - 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.
- Project: with no Supabase MCP, ask for the Supabase dashboard link of the project (
- Check the email sender. The templates need an email channel with a verified sending domain. Follow the setup check in the
building-workflowsskill's onboarding reference. - Save the project URL. With the Supabase MCP, call
get_project_url. Otherwise it ishttps://<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 withsupabase-auth-emails-settings-update. - 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_urland 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.
- Save the hook secret. Never invent a hook secret. If a secret is already stored, leave
hook_secretout 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=supabasein their PostHog app. It opens the Supabase setup. They paste the secret and click Save connection. Then callsupabase-auth-emails-settings-getand confirmhas_hook_secretis true.
- In the chat: save it with
- 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 withhas_starter_templatethat 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 thedesigning-email-templatesskill. - 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 withsupabase-auth-emails-settings-update. Buildtemplatesfrom 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.
- Starter templates. Call
- Check before the hook goes live. In the response of your last call, confirm
supabase_urlis set,has_hook_secretis true, and every core email type in theemail_typeslist 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. - 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.
- **Have the
अक्सर पूछे जाने वाले सवाल
क्या एजेंट Supabase हुक खुद बदल सकता है?
नहीं। वह ये सेटिंग आप पर छोड़ता है, क्योंकि ये हर साइन-अप ईमेल को प्रभावित करती हैं।
क्या यह फ़ीचर हमेशा उपलब्ध है?
हमेशा नहीं। यह एक बीटा फ़्लैग के पीछे है, और अगर आपके प्रोजेक्ट के लिए चालू नहीं है तो एजेंट यह बताएगा।
हुक सीक्रेट कैसे साझा होता है?
आप उसे चैट में पेस्ट कर सकते हैं या 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
कमेंट
- …
इस repository की और skills
depot-ci
41kयह आपके एजेंट को Depot CI वर्कफ़्लो सेट अप करने, चलाने और माइग्रेट करने में मदद करती है, साथ ही रन के लॉग पढ़ने में।
depot-container-builds
41kयह आपके एजेंट को Depot के रिमोट बिल्डर पर Docker इमेज बनाने में मदद करती है, जिसमें मल्टी-प्लेटफ़ॉर्म इमेज और बिल्ड सुधार शामिल हैं।
depot-github-runners
41kयह आपके एजेंट को GitHub Actions जॉब Depot के मैनेज्ड रनर पर ले जाने, रनर का साइज़ और लेबल चुनने, और रनर सेटअप की समस्याएँ ठीक करने में मदद करती है।
editing-agents-md
41kयह आपके एजेंट को तय करने में मदद करती है कि कोई नियम AGENTS.md या CLAUDE.md में जाए या नहीं, और उसे ऐसे लिखे कि फ़ाइल भारी न हो।
मिलती-जुलती skills
api-connector-builder
280kयह आपके एजेंट को मौजूदा pattern के हिसाब से नए API connections बनाने देता है। जब बिना कोई नया तरीका बनाए एक और integration जोड़ना हो, तब इसका इस्तेमाल करें।
api-design
280kयह आपके एजेंट को best practices के हिसाब से REST APIs डिज़ाइन करने में मदद करता है। यह तय करने में काम आता है कि APIs आपस में कैसे बात करें, errors कैसे दिखें, और data को कैसे व्यवस्थित करें।
backend-patterns
280kआपके एजेंट को server-side architecture patterns और database optimization में मदद करता है। server पर चलने वाला code बनाने या review करने के लिए उपयोगी है।