feat: implement Firebase ID token authentication for passenger telemetry and update related configurations

This commit is contained in:
2026-09-18 04:04:43 +03:00
parent 863ac603bc
commit b5c6b1973e
8 changed files with 206 additions and 14 deletions

View File

@@ -39,6 +39,11 @@ ADMIN_EMAIL=admin@polotsk-transit.local
# Frontend
API_URL=/api/v1
# Required by the passenger telemetry endpoint to verify Firebase ID tokens.
# Use the same Firebase project as the mobile app; keep the service account JSON outside the repo.
FIREBASE_PROJECT_ID=your-firebase-project-id
GOOGLE_APPLICATION_CREDENTIALS=/absolute/private/path/firebase-service-account.json
# Production settings (uncomment for production)
# NODE_ENV=production
# CORS_ORIGIN=https://admin.yourdomain.com