firebase / firebase/firebase-js-sdk

FirebaseOptions interface has all of its properties set to optional

Open
#7,603 2 comments 0 reactions 0 assignees View on GitHub
api: core bug documentation needs-attention
Dominant language
TypeScript
Stars
5.1k
Forks
1k
Avg merge
2d 21h
Merged PRs (30d)
37

Description

### Operating System

macOS

### Browser Version

Safari 16.5.2

### Firebase SDK Version

10.1.0

### Firebase SDK Product:

Auth

### Describe your project's tooling

index.html with source tag.

### Describe the problem

I am talking about this interface

```
export interface FirebaseOptions {
apiKey?: string;
authDomain?: string;
databaseURL?: string;
projectId?: string;
storageBucket?: string;
messagingSenderId?: string;
appId?: string;
measurementId?: string;
}
```

All of the properties are optional, however from the docs only `measurementId` should be.

### Steps and code to reproduce issue

See [https://firebase.google.com/docs/reference/js/app.firebaseoptions](https://firebase.google.com/docs/reference/js/app.firebaseoptions).

Contributor guide

Open the contributing guide

Research direction

Start by locating the exported FirebaseOptions interface shown in the issue and compare its property optionality with the FirebaseOptions reference documentation. Verify the expected required and optional properties against the public type and run the relevant TypeScript checks; done means the interface and documented contract agree.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.