Skip to main content

Print Bridge Firebase web config

Print Bridge can sign you in with your FlowPOS account (the same email and password you use in FlowPOS) or with a local password set only on that machine.

The Firebase web config (JSON) field on Configuration is required only for FlowPOS account login. It is the same public web client config the FlowPOS PWA uses (VITE_PUBLIC_FIREBASE_CONFIG). It is not a Firebase Admin private key.

Leave the field empty if you only use the local password.


When you need it​

You want to…Firebase JSON needed?
Sign in with a FlowPOS account on http://…:3456/loginYes — paste the JSON for the same environment as the API URL
Sign in only with the local passwordNo — leave the field empty
Pair printers / start the agent after you are already signed inNo extra Firebase step

The API URL, the pairing code, and the Firebase JSON must all belong to the same environment (Local, Staging, or Production). Mixing them is the most common cause of “account login fails after I switched environments.”


Step 1 — Choose the matching environment​

On the Print Bridge PC, open Configuration (http://<print-bridge-ip>:3456/config).

  1. Under API, environment & timezone, choose Local, Staging, Production, or Custom.
  2. Confirm the FlowPOS API URL matches that choice (for Local you may need a LAN IP if the bridge runs in Docker).
  3. Keep that choice in mind for the next step — the Firebase JSON must come from the same environment.

Step 2 — Get the Firebase web config JSON​

Use one of these sources. Prefer the first if you already have access to the PWA env for that environment.

Option A — From the FlowPOS PWA of that environment (preferred)​

  1. Open the env / secrets for the same environment you chose in Step 1 (local .env, Doppler, or your deploy config — wherever VITE_PUBLIC_FIREBASE_CONFIG is set for the PWA).
  2. Copy the full value of VITE_PUBLIC_FIREBASE_CONFIG.
  3. It should look like a single JSON object, for example:
{"apiKey":"AIza…","authDomain":"….firebaseapp.com","projectId":"…","storageBucket":"….appspot.com","messagingSenderId":"…","appId":"1:…:web:…"}

You need at least apiKey. The other fields are normally present in the PWA value; paste the whole object.

Option B — From the Firebase console​

  1. Sign in to the Firebase console for the project that serves that environment.
  2. Open Project settings (gear) → Your apps.
  3. Select the Web app used by FlowPOS (or add one if this is a new project).
  4. Under SDK setup and configuration, choose Config (not the npm snippet).
  5. Copy the firebaseConfig object — the { apiKey: …, … } block — as JSON.

Use the project that matches Local / Staging / Production. A production bridge with a staging Firebase project will reject or confuse FlowPOS account sign-in.


Step 3 — Paste it on the Config page​

  1. Still on Configuration, find Firebase web config (JSON).
  2. Paste the JSON into the text area (replace any old value when switching environments).
  3. Click Save API & timezone.
  4. If the API host changed while the print agent was running, the agent stops. Start it again from Status after you finish pairing for the new environment.

Step 4 — Pair, then sign in​

  1. If the bridge was paired to another environment, Unpair, then pair again with a code from this environment’s FlowPOS (Restaurant → Kitchen Stations → Pair Print Bridge).
  2. Open Login and choose FlowPOS account.
  3. Sign in with your FlowPOS email and password.

If account login still fails​

  1. Sign in with the local password (set it on Configuration if you have not already) so you can open Config without Firebase.
  2. Re-check: API URL environment, Firebase JSON from that same environment, and a pairing code from that same FlowPOS.
  3. Confirm the JSON is valid (starts with {, includes "apiKey").
  4. Confirm the PC can reach the API URL (browser or curl).

Without Firebase configured, FlowPOS account sign-in cannot work; only the local password path works.


  • Kitchen designer (pairing and Print Bridge on the kitchen drawing): Kitchen designer