Build on the supported package contract
Use @absolutejs/dispatch-fcm through its supported public entry points.
@absolutejs/dispatch-fcmv0.2.1betaMessagingFirebase Cloud Messaging HTTP v1 PushAdapter for @absolutejs/dispatch with ADC and short-lived OAuth token support.
bun add @absolutejs/dispatch-fcmFirebase Cloud Messaging HTTP v1 PushAdapter for @absolutejs/dispatch. It uses google-auth-library Application Default Credentials by default, so access tokens remain short-lived and service-account keys do not enter message payloads or dispatch core.
Use /topics/name or metadata.targetType: 'topic' for a topic. FCM data values are normalized to strings as required by HTTP v1. Advanced android, apns, and webpush objects can be supplied in message metadata.
Outcomes
Use @absolutejs/dispatch-fcm through its supported public entry points.
Hardening checklist
Follow in order
# @absolutejs/dispatch-fcm
import { createDispatcher } from "@absolutejs/dispatch";
import { createFcmAdapter } from "@absolutejs/dispatch-fcm";
const dispatcher = createDispatcher({
push: createFcmAdapter({ projectId: process.env.FCM_PROJECT_ID! }),
});Supported entry points declared by this package manifest.
Package entry point declared in package.json.
Scripts declared by this package manifest.