Firebase Auth

Firebase Auth is optional. To enable:

1. Download service account

Download the service account JSON from Firebase Console.

2. Set environment variable

FIREBASE_CREDENTIALS_PATH=./service-account.json

3. Use auth in api.yaml

Endpoints with auth: true require an Authorization: Bearer <token> header.

On Vercel

On Vercel use the JSON string instead of file path:

FIREBASE_CREDENTIALS_JSON='{"type":"service_account",...}'

Or:

vercel env add FIREBASE_CREDENTIALS_JSON production