Home > @firebase/app > FirebaseApp > name
FirebaseApp.name property
The (read-only) name for this app.
The default app's name is "[DEFAULT]"
.
Signature:
readonly name: string;
Example 1
// The default app's name is "[DEFAULT]"
const app = initializeApp(defaultAppConfig);
console.log(app.name); // "[DEFAULT]"
Example 2
// A named app's name is what you provide to initializeApp()
const otherApp = initializeApp(otherAppConfig, "other");
console.log(otherApp.name); // "other"