Skip to content

Commit

Permalink
Met à jour la version de firebase admin et ajuste la création du cert…
Browse files Browse the repository at this point in the history
…ificat
  • Loading branch information
guillett committed Nov 18, 2024
1 parent 4a09b54 commit 1d8fb4d
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions supabase/functions/_shared/messaging.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import { initializeApp, cert } from "npm:firebase-admin/app";
import { getMessaging, AndroidConfig } from "npm:firebase-admin/messaging";
import { initializeApp, cert } from "npm:firebase-admin@13/app";
import { getMessaging, AndroidConfig } from "npm:firebase-admin@13/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"),
project_id: Deno.env.get("GOOGLE_APPLICATION_PROJECT_ID"),
client_email: Deno.env.get("GOOGLE_APPLICATION_CLIENT_EMAIL"),
private_key: Deno.env.get("GOOGLE_APPLICATION_PRIVATE_KEY"),
});
console.log(credential);
const app = initializeApp({
credential,
databaseURL: `https://${Deno.env.get("GOOGLE_APPLICATION_DATABASE")}.firebaseio.com`,
Expand Down

0 comments on commit 1d8fb4d

Please # to comment.