Skip to content

fix(corbado_auth_firebase): repair compile error and resolve analyzer issues#253

Open
spydon wants to merge 6 commits into
corbado:mainfrom
spydon:chore/fix-corbado-auth-firebase
Open

fix(corbado_auth_firebase): repair compile error and resolve analyzer issues#253
spydon wants to merge 6 commits into
corbado:mainfrom
spydon:chore/fix-corbado-auth-firebase

Conversation

@spydon

@spydon spydon commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator

What

Repairs corbado_auth_firebase (previously non-compiling) and brings it to zero analyzer issues, so the whole monorepo now passes melos run analyze (--fatal-infos).

  • Compile fix: the example referenced PasskeyInfo.userAgent, which no longer exists. Replaced it with ${passkeyInfo.sourceBrowser} on ${passkeyInfo.sourceOS} (the fields PasskeyInfo now exposes).
  • Docs: added /// doc comments for public members in exceptions.dart, corbado_auth_firebase.dart, and services/corbado.dart.
  • Safe fix: removed an unused credential local in the example (kept the awaited call).
  • Suppression (no API change): // ignore_for_file: prefer_constructors_over_static_methods for CorbadoService.getInstance.
  • Generated code: added analyzer: exclude: ['**/*.g.dart'] to the analysis options, matching the other packages.

No public identifiers, file names, or signatures were changed.

Verification

  • melos run analyze reports 0 issues across the entire repo (this package included).
  • melos run format:check passes.

Merge order

This is the follow-up to #252. Stacked on #252#251#250; merge those first and this diff reduces to just the corbado_auth_firebase changes.

spydon added 6 commits June 29, 2026 10:06
The json_serializable / json_annotation versions used need Dart 3.8.0.
Constraints are left as-is so consumers on Dart 3.8.0 still resolve the
3.8-compatible json versions rather than being forced to 3.9.0.
Add doc comments for public members, suppress API-breaking lints via
ignore directives without changing public APIs, and apply safe local
fixes. Generated files and corbado_auth_firebase (broken, separate PR)
are out of scope.
… issues

Replace removed PasskeyInfo.userAgent with sourceBrowser/sourceOS in the
example, add doc comments for public members, exclude generated files
from analysis, and suppress prefer_constructors_over_static_methods
without changing the public API.
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.

1 participant