Go to console

A Firebase app holds the initialization information for a collection of services.

Do not call this constructor directly. Instead, use admin.initializeApp() to create an app.

Index

Properties

name

name: string

The (read-only) name for this app.

The default app's name is "[DEFAULT]".

example
// The default app's name is "[DEFAULT]"
admin.initializeApp(defaultAppConfig);
console.log(admin.app().name);  // "[DEFAULT]"
example
// A named app's name is what you provide to initializeApp()