Skip to main content

Authentication

Authentication controls how the Notification Center widget identifies the current user to Notifizz. Choosing the right strategy depends on your existing auth setup and your security requirements.

Which strategy should I use?

FirebaseBackend tokensNo authentication
SecurityHigh (Firebase-verified)High (HMAC-verified)None
Backend workNone (use existing Firebase)Generate token per userNone
Required fieldstokentoken, userId, userEmailuserId, userEmail
Best forFirebase appsCustom auth systemsDevelopment only
For production applications, we recommend Backend tokens if you have your own auth system, or Firebase if you already use Firebase Auth. Use No authentication only during development.

How authentication fits in

Authentication happens when the Notification Center widget initializes. The widget sends the credentials you provide, and Notifizz verifies them before opening a real-time connection for the user. All Notification Center SDKs (React, Angular, Vanilla JS) accept the same authentication fields:
OptionTypeRequiredDescription
apiKeystringAlwaysYour Front API Key from the dashboard.
authType'firebase' | 'backendToken' | 'none'AlwaysAuthentication strategy.
tokenstringFor firebase and backendTokenThe auth token.
userIdstringFor backendToken and noneThe user’s unique identifier.
userEmailstringFor backendToken and noneThe user’s email address.

Choose your strategy

Backend tokens

Secure authentication with HMAC tokens generated by your backend. Recommended for production.

Firebase

Authenticate with Firebase ID tokens. Zero backend work if you already use Firebase Auth.

No authentication

Connect with just a user ID. For development and prototyping only.