Skip to content

Commit 2615081

Browse files
fix(auth): export MISSING_PASSWORD in AuthErrorCodes (#9297)
1 parent b7e18d0 commit 2615081

File tree

4 files changed

+9
-0
lines changed

4 files changed

+9
-0
lines changed

.changeset/metal-lies-compete.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@firebase/auth': patch
3+
'firebase': patch
4+
---
5+
6+
Export MISSING_PASSWORD via AuthErrorCodes in @firebase/auth.

common/api-review/auth.api.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ export const AuthErrorCodes: {
195195
readonly MISSING_MFA_INFO: "auth/missing-multi-factor-info";
196196
readonly MISSING_MFA_SESSION: "auth/missing-multi-factor-session";
197197
readonly MISSING_PHONE_NUMBER: "auth/missing-phone-number";
198+
readonly MISSING_PASSWORD: "auth/missing-password";
198199
readonly MISSING_SESSION_INFO: "auth/missing-verification-id";
199200
readonly MODULE_DESTROYED: "auth/app-deleted";
200201
readonly NEED_CONFIRMATION: "auth/account-exists-with-different-credential";

docs-devsite/auth.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1914,6 +1914,7 @@ AUTH_ERROR_CODES_MAP_DO_NOT_USE_INTERNALLY: {
19141914
readonly MISSING_MFA_INFO: "auth/missing-multi-factor-info";
19151915
readonly MISSING_MFA_SESSION: "auth/missing-multi-factor-session";
19161916
readonly MISSING_PHONE_NUMBER: "auth/missing-phone-number";
1917+
readonly MISSING_PASSWORD: "auth/missing-password";
19171918
readonly MISSING_SESSION_INFO: "auth/missing-verification-id";
19181919
readonly MODULE_DESTROYED: "auth/app-deleted";
19191920
readonly NEED_CONFIRMATION: "auth/account-exists-with-different-credential";

packages/auth/src/core/errors.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -560,6 +560,7 @@ export const AUTH_ERROR_CODES_MAP_DO_NOT_USE_INTERNALLY = {
560560
MISSING_MFA_INFO: 'auth/missing-multi-factor-info',
561561
MISSING_MFA_SESSION: 'auth/missing-multi-factor-session',
562562
MISSING_PHONE_NUMBER: 'auth/missing-phone-number',
563+
MISSING_PASSWORD: 'auth/missing-password',
563564
MISSING_SESSION_INFO: 'auth/missing-verification-id',
564565
MODULE_DESTROYED: 'auth/app-deleted',
565566
NEED_CONFIRMATION: 'auth/account-exists-with-different-credential',

0 commit comments

Comments
 (0)