The (read-only) name for this app.
The default app's name is "[DEFAULT]"
.
// The default app's name is "[DEFAULT]"
initializeApp(defaultAppConfig);
console.log(admin.app().name); // "[DEFAULT]"
// A named app's name is what you provide to initializeApp()
const otherApp = initializeApp(otherAppConfig, "other");
console.log(otherApp.name); // "other"
The (read-only) configuration options for this app. These are the original parameters given in firebase-admin.app#initializeApp.
const app = initializeApp(config);
console.log(app.options.credential === config.credential); // true
console.log(app.options.databaseURL === config.databaseURL); // true
A Firebase app holds the initialization information for a collection of services.