0

i am really struggling with firebase-admin on vue.

I am getting Error: Credential implementation provided to initializeApp() via the "credential" property failed to fetch a valid Google OAuth2 access token with the following error: "Error fetching access token: Error while making request: incorrect header check. Error code: Z_DATA_ERROR".

`const apps = getApps(); if (!apps.length) { initializeApp({ credential: cert(serviceAccount) }); }

await getMessaging().sendToTopic("test", { notification: { title: "Test", body: "Test" } });` what am I missing..

Tega Brooks
  • 21
  • 1
  • 1

0 Answers0