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/login | Yes — paste the JSON for the same environment as the API URL |
| Sign in only with the local password | No — leave the field empty |
| Pair printers / start the agent after you are already signed in | No 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).
- Under API, environment & timezone, choose Local, Staging, Production, or Custom.
- Confirm the FlowPOS API URL matches that choice (for Local you may need a LAN IP if the bridge runs in Docker).
- 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)
- Open the env / secrets for the same environment you chose in Step 1 (local
.env, Doppler, or your deploy config — whereverVITE_PUBLIC_FIREBASE_CONFIGis set for the PWA). - Copy the full value of
VITE_PUBLIC_FIREBASE_CONFIG. - 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
- Sign in to the Firebase console for the project that serves that environment.
- Open Project settings (gear) → Your apps.
- Select the Web app used by FlowPOS (or add one if this is a new project).
- Under SDK setup and configuration, choose Config (not the npm snippet).
- Copy the
firebaseConfigobject — 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
- Still on Configuration, find Firebase web config (JSON).
- Paste the JSON into the text area (replace any old value when switching environments).
- Click Save API & timezone.
- 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
- 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).
- Open Login and choose FlowPOS account.
- Sign in with your FlowPOS email and password.
If account login still fails
- Sign in with the local password (set it on Configuration if you have not already) so you can open Config without Firebase.
- Re-check: API URL environment, Firebase JSON from that same environment, and a pairing code from that same FlowPOS.
- Confirm the JSON is valid (starts with
{, includes"apiKey"). - 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.
Related
- Kitchen designer (pairing and Print Bridge on the kitchen drawing): Kitchen designer