interface FcmProviderOptions
Since 0.1.0

Options for FcmProvider.

Properties

projectId: string

Firebase project id; addressed by the v1 messages:send URL.

optional
clientEmail: string

Service-account email that signs the OAuth2 assertion. Required unless tokenSource is supplied.

optional
privateKey: string

PEM PKCS#8 private key for the service account. Required unless tokenSource is supplied.

optional
runtime: IRuntimeServices

Runtime services providing Web Crypto and the wall clock, used to sign the assertion and expire cached tokens. Required unless tokenSource is supplied; the plugin passes this automatically.

Overrides how access tokens are acquired — e.g. from a GCP metadata server instead of a locally held key. When set, the three credential fields above are unused.

Usage

import { type FcmProviderOptions } from "notification-plugin/src/index.ts";