This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { App, initializeApp, cert, getApps } from 'firebase-admin/app'; | |
| import { getMessaging, Message } from 'firebase-admin/messaging'; | |
| import { ServiceAccount } from 'firebase-admin'; | |
| // Ensure gaxios (used by firebase-admin & google-auth-library) uses Node native fetch | |
| function patchGaxiosClass(Gaxios: any) { | |
| if (Gaxios && !(Gaxios.prototype as any).__fetchPatched) { | |
| (Gaxios.prototype as any).__fetchPatched = true; | |
| const originalRequest = Gaxios.prototype.request; | |
| Gaxios.prototype.request = function (opts: any) { |
OlderNewer