Skip to content

Conversation

@demolaf
Copy link
Member

@demolaf demolaf commented Dec 8, 2025

Changes

  • Add ProjectConfigManager for managing project-level auth configuration (email privacy, SMS regions, password policies, MFA, reCAPTCHA, mobile links)
  • Comprehensive testing - unit and e2e tests for Project config features.
  • Improved error handling - Added missing error codes and better exception messages
  • Public JSON methods - Exposed toJson() for UserRecord and config classes
  • Examples - Added projectConfigExample() and tenantExample() to demo app
  • Implemented new linkDomain property with removal of dynamicLinkDomain
  • Added comprehensive tests across all email action link methods
  • Added unit tests for UserRecord, UserMetadata, UserInfo, MultiFactorInfo, MultiFactorSettings, and PhoneMultiFactorInfo covering edge cases, null handling, error conditions, and serialization

@demolaf demolaf marked this pull request as draft December 8, 2025 10:24
@github-actions
Copy link

github-actions bot commented Dec 8, 2025

Coverage Report

✅ Coverage 62.55% meets 40% threshold

Coverage: 62.55%
Lines Covered: 2895/4628

Minimum threshold: 40%

@codecov
Copy link

codecov bot commented Dec 8, 2025

Codecov Report

❌ Patch coverage is 16.66667% with 10 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (next@331f4d9). Learn more about missing BASE report.

Files with missing lines Patch % Lines
...ackages/dart_firebase_admin/lib/src/auth/user.dart 9.09% 10 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             next     #111   +/-   ##
=======================================
  Coverage        ?   57.92%           
=======================================
  Files           ?       65           
  Lines           ?     4501           
  Branches        ?        0           
=======================================
  Hits            ?     2607           
  Misses          ?     1894           
  Partials        ?        0           
Flag Coverage Δ
unittests 57.92% <16.66%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

…onfig features

- Adds detailed examples for project configuration and tenant management to the example application.

- Renames the service account key file in examples to `service-account-key.json` for consistency.
@demolaf demolaf changed the title Feat/auth missing apis feat: added ProjectConfigManager, missing error codes for Auth exceptions and tests Dec 8, 2025
@demolaf demolaf marked this pull request as ready for review December 8, 2025 17:11
@demolaf demolaf changed the title feat: added ProjectConfigManager, missing error codes for Auth exceptions and tests feat: added ProjectConfigManager, deprecated dynamicLinkDomain, missing error codes for Auth exceptions and tests Dec 9, 2025
@demolaf demolaf changed the title feat: added ProjectConfigManager, deprecated dynamicLinkDomain, missing error codes for Auth exceptions and tests feat: added ProjectConfigManager, removed dynamicLinkDomain, missing error codes for Auth exceptions and tests Dec 11, 2025
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.

3 participants