Skip to content

Commit 3156903

Browse files
fix(auth): export MISSING_PASSWORD in AuthErrorCodes
1 parent ccbf7ba commit 3156903

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

packages/auth/src/core/errors.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,5 +603,6 @@ export const AUTH_ERROR_CODES_MAP_DO_NOT_USE_INTERNALLY = {
603603
MISSING_RECAPTCHA_VERSION: 'auth/missing-recaptcha-version',
604604
INVALID_RECAPTCHA_VERSION: 'auth/invalid-recaptcha-version',
605605
INVALID_REQ_TYPE: 'auth/invalid-req-type',
606-
INVALID_HOSTING_LINK_DOMAIN: 'auth/invalid-hosting-link-domain'
606+
INVALID_HOSTING_LINK_DOMAIN: 'auth/invalid-hosting-link-domain',
607+
MISSING_PASSWORD: 'auth/missing-password'
607608
} as const;
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { expect } from 'chai';
2+
import { AuthErrorCodes } from '../../../src';
3+
4+
describe('AuthErrorCodes', () => {
5+
it('exports MISSING_PASSWORD', () => {
6+
expect(AuthErrorCodes.MISSING_PASSWORD).to.equal('auth/missing-password');
7+
});
8+
});

packages/auth/tsconfig.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
{
22
"extends": "../../config/tsconfig.base.json",
33
"compilerOptions": {
4-
"outDir": "dist"
4+
"outDir": "dist",
5+
"types": ["mocha", "chai"],
6+
"esModuleInterop": true,
7+
"moduleResolution": "node",
8+
"resolveJsonModule": true
59
},
610
"exclude": ["dist/**/*", "demo/**/*"]
711
}

0 commit comments

Comments
 (0)