# - [firebase](https://firebase.google.com/docs/reference/node/firebase).
- [app](https://firebase.google.com/docs/reference/node/firebase.app).
- App

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

Do not call this constructor directly. Instead, use
[`firebase.initializeApp()`](https://firebase.google.com/docs/reference/node/firebase#initializeapp) to create an app.

## Index

### Properties

- [automaticDataCollectionEnabled](https://firebase.google.com/docs/reference/node/firebase.app.App#automaticdatacollectionenabled)
- [name](https://firebase.google.com/docs/reference/node/firebase.app.App#name)
- [options](https://firebase.google.com/docs/reference/node/firebase.app.App#options)

### Methods

- [appCheck](https://firebase.google.com/docs/reference/node/firebase.app.App#appcheck)
- [auth](https://firebase.google.com/docs/reference/node/firebase.app.App#auth)
- [database](https://firebase.google.com/docs/reference/node/firebase.app.App#database)
- [delete](https://firebase.google.com/docs/reference/node/firebase.app.App#delete)
- [firestore](https://firebase.google.com/docs/reference/node/firebase.app.App#firestore)
- [functions](https://firebase.google.com/docs/reference/node/firebase.app.App#functions)
- [storage](https://firebase.google.com/docs/reference/node/firebase.app.App#storage)

## Properties

### automaticDataCollectionEnabled

automaticDataCollectionEnabled: boolean The settable config flag for GDPR opt-in/opt-out

### 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]"
        firebase.initializeApp(defaultAppConfig);
        console.log(firebase.app().name);  // "[DEFAULT]"


example
:

        // A named app's name is what you provide to initializeApp()
        var otherApp = firebase.initializeApp(otherAppConfig, "other");
        console.log(otherApp.name);  // "other"


### options

options: Object The (read-only) configuration options for this app. These are the original
parameters given in
[`firebase.initializeApp()`](https://firebase.google.com/docs/reference/node/firebase#initializeapp).

example
:

        var app = firebase.initializeApp(config);
        console.log(app.options.databaseURL === config.databaseURL);  // true


## Methods

### appCheck

- appCheck ( ) : firebase.appCheck.AppCheck
-

  #### Returns firebase.appCheck.AppCheck

### auth

- auth ( ) : [Auth](https://firebase.google.com/docs/reference/node/firebase.auth.Auth)
- Gets the [`Auth`](https://firebase.google.com/docs/reference/node/firebase.auth.Auth) service for the current app.

  example
  :

          var auth = app.auth();
          // The above is shorthand for:
          // var auth = firebase.auth(app);


  #### Returns [Auth](https://firebase.google.com/docs/reference/node/firebase.auth.Auth)

### database

- database ( url ? : string ) : [Database](https://firebase.google.com/docs/reference/node/firebase.database.Database)
- Gets the [`Database`](https://firebase.google.com/docs/reference/node/firebase.database.Database) service for the
  current app.

  example
  :

          var database = app.database();
          // The above is shorthand for:
          // var database = firebase.database(app);


  #### Parameters

  -

    ##### Optional url: string

  #### Returns [Database](https://firebase.google.com/docs/reference/node/firebase.database.Database)

### delete

- delete ( ) : Promise \< any \>
- Renders this app unusable and frees the resources of all associated
  services.

  example
  :

          app.delete()
            .then(function() {
              console.log("App deleted successfully");
            })
            .catch(function(error) {
              console.log("Error deleting app:", error);
            });


  #### Returns Promise\<any\>

### firestore

- firestore ( ) : [Firestore](https://firebase.google.com/docs/reference/node/firebase.firestore.Firestore)
-

  #### Returns [Firestore](https://firebase.google.com/docs/reference/node/firebase.firestore.Firestore)

### functions

- functions ( regionOrCustomDomain ? : string ) : [Functions](https://firebase.google.com/docs/reference/node/firebase.functions.Functions)
-

  #### Parameters

  -

    ##### Optional regionOrCustomDomain: string

  #### Returns [Functions](https://firebase.google.com/docs/reference/node/firebase.functions.Functions)

### storage

- storage ( url ? : string ) : [Storage](https://firebase.google.com/docs/reference/node/firebase.storage.Storage)
- Gets the [`Storage`](https://firebase.google.com/docs/reference/node/firebase.storage.Storage) service for the current
  app, optionally initialized with a custom storage bucket.

  example
  :

          var storage = app.storage();
          // The above is shorthand for:
          // var storage = firebase.storage(app);


  example
  :

          var storage = app.storage("gs://your-app.appspot.com");


  #### Parameters

  -

    ##### Optional url: string

    The gs:// url to your Firebase Storage Bucket.
    If not passed, uses the app's default Storage Bucket.

  #### Returns [Storage](https://firebase.google.com/docs/reference/node/firebase.storage.Storage)