{
  "slug": "firebase-auth-supabase-profile-edge-tutorial",
  "title": "Supabase alternative for firebase auth proxy edge",
  "metaTitle": "Supabase alternative for firebase - RealComposer",
  "metaDescription": "Supabase alternative for firebase auth proxy edge. FlutterFlow CORS fix for Firebase and Supabase via RealComposer OPTIONS plus vault headers.",
  "headline": "Tutorial-style mobile auth plus profile stack",
  "category": "ecosystem",
  "categoryLabel": "Platforms & Frameworks",
  "urgency": 8,
  "clientPlatform": "FlutterFlow",
  "upstreamServices": [
    "Firebase",
    "Supabase"
  ],
  "searchIntentQuery": "supabase alternative for firebase auth proxy edge",
  "directAnswerSummary": "Documents composed Firebase and Supabase pipeline clone path. For \"supabase alternative for firebase auth proxy edge\", store FIREBASE_ACCESS_TOKEN, SUPABASE_SERVICE_ROLE_KEY in Secret Vault, call https://firestore.googleapis.com/v1/projects/{{query.projectId}}/databases/(default)/documents/{{query.collection}}/{{query.docId}} from a Worker, and let FlutterFlow hit only https://realcomposer.com/v1/workspace/firebase-auth-supabase-profile-edge-tutorial with an rc_live_ client token.",
  "problem": {
    "title": "FlutterFlow cannot attach secret headers to Firebase and Supabase",
    "explanation": "FlutterFlow runs in the browser or a sandbox without a secret store. Firebase and Supabase rejects unsigned browser origins or requires server-only headers.",
    "risks": [
      "Proxy hacks that break when vendors tighten CSP",
      "Zapier-only workarounds adding cost and latency",
      "Guest users seeing failed network requests in demos"
    ]
  },
  "solutionSteps": [
    {
      "stepNumber": 1,
      "title": "Bind vault keys to the Worker",
      "description": "Store FIREBASE_ACCESS_TOKEN, SUPABASE_SERVICE_ROLE_KEY in the vault. FlutterFlow never embeds the raw secret, only a revocable rc_live_ client token."
    },
    {
      "stepNumber": 2,
      "title": "Target the real upstream URL",
      "description": "Configure headersTemplate to inject vault secrets, target https://firestore.googleapis.com/v1/projects/{{query.projectId}}/databases/(default)/documents/{{query.collection}}/{{query.docId}}, and Add output mapping fields that mirror the JSON contract your screen already expects."
    },
    {
      "stepNumber": 3,
      "title": "Wire the FlutterFlow API Call",
      "description": "Call https://realcomposer.com/v1/workspace/firebase-auth-supabase-profile-edge-tutorial with a restricted rc_live_ client token. FlutterFlow never sends upstream secrets.",
      "codeSnippet": "// FlutterFlow API Call\nURL: https://realcomposer.com/v1/workspace/firebase-auth-supabase-profile-edge-tutorial\nHeader Authorization: Bearer rc_live_your_token"
    }
  ],
  "pipelineConfig": {
    "name": "Supabase alternative for firebase auth proxy edge",
    "method": "GET",
    "cacheTtlSeconds": 0,
    "authMode": "client_token",
    "steps": [
      {
        "stepKey": "firebase",
        "upstreamUrlTemplate": "https://firestore.googleapis.com/v1/projects/{{query.projectId}}/databases/(default)/documents/{{query.collection}}/{{query.docId}}",
        "httpMethod": "GET",
        "headersTemplate": {
          "Authorization": "Bearer {{secrets.FIREBASE_ACCESS_TOKEN}}"
        },
        "timeoutMs": 3000
      },
      {
        "stepKey": "supabase",
        "upstreamUrlTemplate": "https://{{secrets.SUPABASE_PROJECT_REF}}.supabase.co/rest/v1/{{query.table}}?{{query.filter}}",
        "httpMethod": "GET",
        "headersTemplate": {
          "apikey": "{{secrets.SUPABASE_SERVICE_ROLE_KEY}}",
          "Authorization": "Bearer {{secrets.SUPABASE_SERVICE_ROLE_KEY}}"
        },
        "timeoutMs": 3000
      }
    ],
    "outputMapping": {
      "version": 1,
      "fields": [
        {
          "targetPath": "firebase.docName",
          "sourcePath": "name",
          "type": "string",
          "sourceStep": "firebase"
        },
        {
          "targetPath": "firebase.fields",
          "sourcePath": "fields",
          "type": "object",
          "sourceStep": "firebase"
        },
        {
          "targetPath": "supabase.rowId",
          "sourcePath": "0.id",
          "type": "string",
          "sourceStep": "supabase"
        },
        {
          "targetPath": "supabase.email",
          "sourcePath": "0.email",
          "type": "string",
          "sourceStep": "supabase"
        }
      ]
    }
  },
  "sampleBloatedInput": {
    "requestId": "req_firebase",
    "upstreamLatencyMs": 142,
    "audit": {
      "region": "edge",
      "trace": "firebase-auth-supabase-profile-edge-tutorial"
    },
    "payload": {
      "id": "sample_id",
      "status": "active",
      "nested": {
        "tags": [
          "demo"
        ],
        "internal": true
      },
      "unused_blob": {
        "foo": "bar",
        "bar": "baz"
      }
    }
  },
  "sampleSlimmedOutput": {
    "firebase_docName": "sample",
    "firebase_fields": "sample",
    "supabase_rowId": "sample",
    "supabase_email": "sample"
  },
  "curlSnippet": "curl -X GET \"https://realcomposer.com/v1/workspace/firebase-auth-supabase-profile-edge-tutorial\" \\\n  -H \"Authorization: Bearer rc_live_client_token\"",
  "faqs": [
    {
      "question": "Is it safe to log Firebase responses in FlutterFlow?",
      "answer": "Point FlutterFlow at /recipes/firebase-auth-supabase-profile-edge-tutorial edge URL. RealComposer answers OPTIONS with Access-Control headers for allowed origins."
    },
    {
      "question": "Will Anthropic or Linear prompt bodies be rewritten?",
      "answer": "firebase-auth-supabase-profile-edge-tutorial keeps cache TTL at 0 because it uses POST upstream calls or per-user responses. Add ids to query strings before enabling GET cache."
    },
    {
      "question": "How do I rotate upstream credentials?",
      "answer": "Rotate vault secrets for firebase-auth-supabase-profile-edge-tutorial anytime; clients keep the same rc_live_ token."
    }
  ],
  "relatedRecipeSlugs": [
    "flutterflow-backend-for-frontend-tutorial",
    "combine-firebase-auth-with-supabase-profile"
  ],
  "updatedAt": "2026-11-20",
  "links": {
    "page": "https://realcomposer.com/recipes/firebase-auth-supabase-profile-edge-tutorial",
    "markdown": "https://realcomposer.com/recipes/firebase-auth-supabase-profile-edge-tutorial.md",
    "json": "https://realcomposer.com/recipes/firebase-auth-supabase-profile-edge-tutorial.json",
    "install": "https://realcomposer.com/dashboard/pipelines/new?recipe=firebase-auth-supabase-profile-edge-tutorial&via=agent"
  }
}