Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

WebAppConfig

import type { WebAppConfig } from "https://googleapis.deno.dev/v1/firebase:v1beta1.ts";

Configuration metadata of a single Firebase App for the web.

interface WebAppConfig {
apiKey?: string;
appId?: string;
authDomain?: string;
databaseURL?: string;
locationId?: string;
measurementId?: string;
messagingSenderId?: string;
projectId?: string;
storageBucket?: string;
}

§Properties

§
apiKey?: string
[src]

The keyString of the API key associated with the WebApp. Note that this value is not the apiKeyId (the UID) of the API key associated with the WebApp.

§
appId?: string
[src]

Immutable. The globally unique, Firebase-assigned identifier for the WebApp.

§
authDomain?: string
[src]

The domain Firebase Auth configures for OAuth redirects, in the format: PROJECT_ID.firebaseapp.com

§
databaseURL?: string
[src]

DEPRECATED. Instead, find the default Firebase Realtime Database instance name using the list endpoint within the Firebase Realtime Database REST API. Note that the default instance for the Project might not yet be provisioned, so the return might not contain a default instance. The default Firebase Realtime Database URL.

§
locationId?: string
[src]

DEPRECATED. Instead, use product-specific REST APIs to find the location of resources. The ID of the Project's default GCP resource location. The location is one of the available GCP resource locations. This field is omitted if the default GCP resource location has not been finalized yet. To set a Project's default GCP resource location, call FinalizeDefaultLocation after you add Firebase resources to the Project.

§
measurementId?: string
[src]

The unique Google-assigned identifier of the Google Analytics web stream associated with the WebApp. Firebase SDKs use this ID to interact with Google Analytics APIs. This field is only present if the WebApp is linked to a web stream in a Google Analytics App + Web property. Learn more about this ID and Google Analytics web streams in the Analytics documentation. To generate a measurementId and link the WebApp with a Google Analytics web stream, call AddGoogleAnalytics. For apps using the Firebase JavaScript SDK v7.20.0 and later, Firebase dynamically fetches the measurementId when your app initializes Analytics. Having this ID in your config object is optional, but it does serve as a fallback in the rare case that the dynamic fetch fails.

§
messagingSenderId?: string
[src]

The sender ID for use with Firebase Cloud Messaging.

§
projectId?: string
[src]

Immutable. A user-assigned unique identifier for the FirebaseProject.

§
storageBucket?: string
[src]

DEPRECATED. Instead, find the default Cloud Storage for Firebase bucket using the list endpoint within the Cloud Storage for Firebase REST API. Note that the default bucket for the Project might not yet be provisioned, so the return might not contain a default bucket. The default Cloud Storage for Firebase storage bucket name.