Skip to content

Commit e2d1f69

Browse files
authored
Merge branch 'password-policy' into define-password-policy-public-api
2 parents 7d30818 + 1741fef commit e2d1f69

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

packages/auth/src/api/password_policy/get_password_policy.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ describe('api/password_policy/getPasswordPolicy', () => {
7171
{
7272
error: {
7373
code: 400,
74-
message: ServerError.INVALID_PROVIDER_ID,
74+
message: ServerError.TOO_MANY_ATTEMPTS_TRY_LATER,
7575
errors: [
7676
{
77-
message: ServerError.INVALID_PROVIDER_ID
77+
message: ServerError.TOO_MANY_ATTEMPTS_TRY_LATER
7878
}
7979
]
8080
}
@@ -84,7 +84,7 @@ describe('api/password_policy/getPasswordPolicy', () => {
8484

8585
await expect(_getPasswordPolicy(auth)).to.be.rejectedWith(
8686
FirebaseError,
87-
'Firebase: The specified provider ID is invalid. (auth/invalid-provider-id).'
87+
'Firebase: We have blocked all requests from this device due to unusual activity. Try again later. (auth/too-many-requests).'
8888
);
8989
});
9090
});

packages/auth/src/core/auth/auth_impl.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,7 @@ export class AuthImpl implements AuthInternal, _FirebaseService {
445445
const response = await _getPasswordPolicy(this);
446446

447447
// Check that the policy schema version is supported by the SDK.
448+
// TODO: Update this logic to use a max supported policy schema version once we have multiple schema versions.
448449
if (
449450
response.schemaVersion !== this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION
450451
) {

0 commit comments

Comments
 (0)