Skip to content

docs(index): fix quickstart Step 2 to use fluent API - #3

Merged
mashrulhaque merged 1 commit into
masterfrom
fix/issue-2-docs-addfirebase
Apr 14, 2026
Merged

docs(index): fix quickstart Step 2 to use fluent API#3
mashrulhaque merged 1 commit into
masterfrom
fix/issue-2-docs-addfirebase

Conversation

@mashrulhaque

Copy link
Copy Markdown
Owner

Summary

  • The homepage quickstart "Step 2: Configure Firebase" showed the old property-assignment style (options.ApiKey = "...") which does not compileFirebaseOptions has private set on all properties.
  • Replaced with the fluent builder pattern (WithProject(), WithApiKey(), WithAuthDomain()) that matches the actual API and is already used in getting-started.html.

Root cause

FirebaseOptions exposes properties with private set, so they can only be set via the fluent With*() methods. The homepage quickstart was never updated after the API was changed.

Test plan

  • View the homepage — Step 2 now shows the fluent API call
  • Verify getting-started.html uses the same pattern (it does, no change needed)
  • Confirm no other doc pages use property-assignment syntax on FirebaseOptions (confirmed — only FirebaseAuthorizationOptions uses property assignment, which has public setters)

Closes #2

…ey/WithAuthDomain API

FirebaseOptions has private setters — the old property-assignment style
(options.ApiKey = "...") doesn't compile. Replace it with the fluent
builder pattern already used everywhere else in the docs.

Closes #2
@mashrulhaque
mashrulhaque merged commit 13da6f6 into master Apr 14, 2026
1 check passed
@mashrulhaque
mashrulhaque deleted the fix/issue-2-docs-addfirebase branch April 14, 2026 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docs out of date: AddFirebase configuration uses ApiKey property instead of WithApiKey()

1 participant