Repository navigation
fix(auth): map password policy violation error - #3291
Merged
lahirumaramba merged 5 commits intoNov 9, 2026
Merged
lahirumaramba merged 5 commits into
lahirumaramba merged 5 commits into
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request introduces a new error code, PASSWORD_DOES_NOT_MEET_REQUIREMENTS, to handle password policy violations, along with its client-side mapping and a corresponding unit test. The feedback suggests reorganizing the placement of the new error code and its configuration in src/auth/error.ts to avoid breaking the contiguous block of INVALID_ error codes, and adding an assertion for the error message in the unit test to ensure consistency.
lahirumaramba
approved these changes
Nov 6, 2026
lahirumaramba
left a comment
Member
There was a problem hiding this comment.
Thank you for your contribution!
Could you run npm run api-extractor:local and commit the updated etc/firebase-admin.auth.api.md`?
…into codex/firebase-admin-node-3265-password-policy-error-20261020 Co-authored-by: sean0407 <[email protected]>
Record PASSWORD_DOES_NOT_MEET_REQUIREMENTS in the auth API report and assert the production server form keeps its details suffix. Co-authored-by: sean0407 <[email protected]>
lahirumaramba
approved these changes
Nov 9, 2026
lahirumaramba
approved these changes
Nov 9, 2026
…cy-error-20261020
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
PASSWORD_DOES_NOT_MEET_REQUIREMENTSto the publicauth/password-does-not-meet-requirementserror code.Evidence
FirebaseAuthError.fromServerError('PASSWORD_DOES_NOT_MEET_REQUIREMENTS')returnedauth/internal-error; the regression failed with that result.auth/password-does-not-meet-requirementsand its default message.INVALID_*block and asserting the default message. Both suggestions were applied in commit26cff32.test/unit/utils/error.spec.ts: 26 passing.npm run build: passed.git diff --check: passed.npm run test:unit: 6,147 passing, 8 failing. Failures are HTTP/2 session error assertions intest/unit/utils/api-request.spec.tsandtest/unit/messaging/messaging.spec.ts.Merge Danger
Door: two-way
Blast Radius: limited to the Auth server error mapping for this response code.
Fixes #3265