Firebase Authentication
If your app already uses Firebase Auth, you can authenticate the Notification Center widget directly with a Firebase ID token. Notifizz verifies the token server-side — no additional backend work needed.How it works
User authenticates with Firebase
Your app signs the user in using Firebase Auth (email/password, Google, GitHub, etc.).
Setup
Pass the Firebase ID token to the widget:- React
- Angular
- Vanilla JS
Required fields
| Field | Type | Description |
|---|---|---|
authType | "firebase" | Must be set to "firebase". |
token | string | A valid Firebase ID token for the current user. |
With Firebase authentication, you do not need to provide
userId or userEmail — Notifizz extracts the user identity from the verified Firebase token.Token refresh
Firebase ID tokens expire after 1 hour. Firebase SDKs handle automatic refresh, but you should ensure the widget receives a fresh token. If the widget loses its connection, re-initializing with a new token will restore it.When to use Firebase vs Backend Tokens
| Firebase | Backend tokens | |
|---|---|---|
| You already use Firebase Auth | Yes — zero extra work | Unnecessary overhead |
| You have your own auth system | Not applicable | Use this instead |
| Backend involvement | None | Must generate token per user |
| Token management | Firebase handles refresh | You manage token delivery |
Next steps
Backend tokens
Alternative: authenticate with HMAC tokens from your backend.
Notification Center
Set up the widget to display notifications.