FirebaseOptions interface

Firebase configuration object. Contains a set of parameters required by services in order to successfully communicate with Firebase server APIs and to associate client data with your Firebase project and Firebase application. Typically this object is populated by the Firebase console at project setup. See also:Learn about the Firebase config object.

Signature:

exportinterfaceFirebaseOptions

Properties

PropertyTypeDescription
apiKeystringAn encrypted string used when calling certain APIs that don't need to access private user data (example value:AIzaSyDOCAbC123dEf456GhI789jKl012-MnO).
appIdstringUnique identifier for the app.
authDomainstringAuth domain for the project ID.
databaseURLstringDefault Realtime Database URL.
measurementIdstringAn ID automatically created when you enable Analytics in your Firebase project and register a web app. In versions 7.20.0 and higher, this parameter is optional.
messagingSenderIdstringUnique numerical value used to identify each sender that can send Firebase Cloud Messaging messages to client apps.
projectIdstringThe unique identifier for the project across all of Firebase and Google Cloud.
storageBucketstringThe default Cloud Storage bucket name.

FirebaseOptions.apiKey

An encrypted string used when calling certain APIs that don't need to access private user data (example value:AIzaSyDOCAbC123dEf456GhI789jKl012-MnO).

Signature:

apiKey?:string;

FirebaseOptions.appId

Unique identifier for the app.

Signature:

appId?:string;

FirebaseOptions.authDomain

Auth domain for the project ID.

Signature:

authDomain?:string;

FirebaseOptions.databaseURL

Default Realtime Database URL.

Signature:

databaseURL?:string;

FirebaseOptions.measurementId

An ID automatically created when you enable Analytics in your Firebase project and register a web app. In versions 7.20.0 and higher, this parameter is optional.

Signature:

measurementId?:string;

FirebaseOptions.messagingSenderId

Unique numerical value used to identify each sender that can send Firebase Cloud Messaging messages to client apps.

Signature:

messagingSenderId?:string;

FirebaseOptions.projectId

The unique identifier for the project across all of Firebase and Google Cloud.

Signature:

projectId?:string;

FirebaseOptions.storageBucket

The default Cloud Storage bucket name.

Signature:

storageBucket?:string;

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2022-10-06 UTC.