Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changeset/metal-lies-compete.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@firebase/auth': patch
'firebase': patch
---

Export MISSING_PASSWORD via AuthErrorCodes in @firebase/auth.
3 changes: 2 additions & 1 deletion packages/auth/src/core/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -603,5 +603,6 @@ export const AUTH_ERROR_CODES_MAP_DO_NOT_USE_INTERNALLY = {
MISSING_RECAPTCHA_VERSION: 'auth/missing-recaptcha-version',
INVALID_RECAPTCHA_VERSION: 'auth/invalid-recaptcha-version',
INVALID_REQ_TYPE: 'auth/invalid-req-type',
INVALID_HOSTING_LINK_DOMAIN: 'auth/invalid-hosting-link-domain'
INVALID_HOSTING_LINK_DOMAIN: 'auth/invalid-hosting-link-domain',
MISSING_PASSWORD: 'auth/missing-password'
} as const;
8 changes: 8 additions & 0 deletions packages/auth/test/node/unit/auth_error_codes.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { expect } from 'chai';
import { AuthErrorCodes } from '../../../src';

describe('AuthErrorCodes', () => {
it('exports MISSING_PASSWORD', () => {
expect(AuthErrorCodes.MISSING_PASSWORD).to.equal('auth/missing-password');
});
});
6 changes: 5 additions & 1 deletion packages/auth/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
{
"extends": "../../config/tsconfig.base.json",
"compilerOptions": {
"outDir": "dist"
"outDir": "dist",
"types": ["mocha", "chai"],
"esModuleInterop": true,
"moduleResolution": "node",
"resolveJsonModule": true
},
"exclude": ["dist/**/*", "demo/**/*"]
}