Supabase Auth Magic-Link & OAuth Redirects with AgentDomains
Add https://supa-auth.makes.fyi/** to Supabase Redirect URLs for live magic links and PKCE OAuth tests.
Testing Supabase auth over real HTTPS catches SameSite cookie bugs that localhost hides.
1. 3-Stage Sequence Diagram
3-stage sequence: AI agent claims supa-auth.makes.fyi, maps it to supa-auth.onrender.com, and verifies HTTPS 200 OK.
2. 4-Step MCP Tool-Call Transcript
Your agent sends these exact calls to https://mcp.agentdomains.co or local stdio.
{
"tool": "check_availability",
"arguments": {
"label": "supa-auth",
"domain": "makes.fyi"
}
}
// Response:
{
"fqdn": "supa-auth.makes.fyi",
"available": true,
"reason": "available"
}
{
"tool": "claim_domain",
"arguments": {
"label": "supa-auth",
"domain": "makes.fyi",
"email": "ops@example.com"
}
}
// Response:
{
"fqdn": "supa-auth.makes.fyi",
"status": "claimed",
"confirm_within_days": 30
}
{
"tool": "set_proxy",
"arguments": {
"label": "supa-auth",
"domain": "makes.fyi",
"origin": "supa-auth.onrender.com"
}
}
// Response:
{
"ok": true,
"fqdn": "supa-auth.makes.fyi",
"origin": "supa-auth.onrender.com",
"https": "https://supa-auth.makes.fyi"
}
curl -fsSI https://supa-auth.makes.fyi
# HTTP/2 200
# content-type: application/json
# strict-transport-security: max-age=31536000
3. Clean Teardown (GitHub Action & CLI)
Prune old redirect URLs in Supabase Auth → URL Configuration after teardown. Delete the DNS mapping before you destroy your cloud server to block dangling takeovers.
name: Teardown supa-auth
on:
workflow_dispatch:
pull_request:
types: [closed]
jobs:
cleanup:
runs-on: ubuntu-latest
steps:
- name: Delete AgentDomains hostname before destroying compute
env:
AGENTDOMAINS_API_KEY: ${{ secrets.AGENTDOMAINS_API_KEY }}
run: |
curl -fsSL -X DELETE \
-H "Authorization: Bearer $AGENTDOMAINS_API_KEY" \
"https://api.agentdomains.co/v1/subdomains/supa-auth"
# Or with the Go CLI:
# agentdomains delete supa-auth
More Workflow Blueprints
Clerk Dev & Staging Callbacks
Test Clerk authentication flows, sign-in redirects, and Svix webhooks together on a clean HTTPS staging hostname.
Multi-AgentAgent-to-Agent (A2A) Protocol Endpoints
Publish /.well-known/agent.json Agent Cards and A2A task endpoints over HTTPS on *.agentdomains.co.
OpenAPI Action & Tool Hosts
Serve OpenAPI 3.1 specs and AI tool actions over clean HTTPS with working CORS and TLS.
QA & TestingPlaywright & E2E Staging URLs
Run headless Playwright, Cypress, and visual regression suites against real HTTPS staging URLs provisioned per CI job.
Claim your agent domain now
Start with 10 free HTTPS domains under agentdomains.co or makes.fyi for 30 days. Upgrade to Pro for $10/year to keep up to 100 names with visitor stats.