Server Credentials: Admin SDK Versus HTTP v1
Firebase offers two supported server approaches: the Firebase Admin SDK and the FCM HTTP v1 API. The Admin SDK handles authentication and provides methods for creating and sending messages. HTTP v1 supports direct server requests authorized with short-lived OAuth 2.0 access tokens. Google recommends Application Default Credentials where suitable, including managed cloud environments, and describes service-account credentials for other deployments. Treat service-account keys as privileged secrets: restrict access, rotate them under policy, and never embed them in a website, mobile package, or client-side application.
A public Firebase app configuration or web VAPID public key is not an authorization credential for sending privileged FCM messages. Similarly, a device registration identifier is a destination, not proof that its holder may access a booking. The HTTP v1 authorization guide and Admin SDK guidance clarify the server boundary.


