Skip to content

Commit

Permalink
Log le certificat pour debug
Browse files Browse the repository at this point in the history
  • Loading branch information
guillett committed Nov 18, 2024
1 parent 76dc24f commit 4a09b54
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions supabase/functions/_shared/messaging.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import { initializeApp, cert } from "npm:firebase-admin/app";
import { getMessaging, AndroidConfig } from "npm:firebase-admin/messaging";

const credential = cert({
projectId: Deno.env.get("GOOGLE_APPLICATION_PROJECT_ID"),
clientEmail: Deno.env.get("GOOGLE_APPLICATION_CLIENT_EMAIL"),
privateKey: Deno.env.get("GOOGLE_APPLICATION_PRIVATE_KEY"),
});
console.log(credential);
const app = initializeApp({
credential: cert({
projectId: Deno.env.get("GOOGLE_APPLICATION_PROJECT_ID"),
clientEmail: Deno.env.get("GOOGLE_APPLICATION_CLIENT_EMAIL"),
privateKey: Deno.env.get("GOOGLE_APPLICATION_PRIVATE_KEY"),
}),
credential,
databaseURL: `https://${Deno.env.get("GOOGLE_APPLICATION_DATABASE")}.firebaseio.com`,
});

Expand Down

0 comments on commit 4a09b54

Please sign in to comment.