Skip to content

Commit fd87231

Browse files
committed
fix(auth): export TOTP types in modular style
1 parent f7e97f8 commit fd87231

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

packages/auth/__tests__/auth.test.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ import auth, {
7272
OIDCAuthProvider,
7373
PhoneAuthProvider,
7474
PhoneMultiFactorGenerator,
75+
TotpSecret,
76+
TotpMultiFactorGenerator,
7577
TwitterAuthProvider,
7678
PhoneAuthState,
7779
} from '../lib';
@@ -508,6 +510,14 @@ describe('Auth', function () {
508510
expect(PhoneMultiFactorGenerator).toBeDefined();
509511
});
510512

513+
it('`TotpSecret` class is properly exposed to end user', function () {
514+
expect(TotpSecret).toBeDefined();
515+
});
516+
517+
it('`TotpMultiFactorGenerator` class is properly exposed to end user', function () {
518+
expect(TotpMultiFactorGenerator).toBeDefined();
519+
});
520+
511521
it('`TwitterAuthProvider` class is properly exposed to end user', function () {
512522
expect(TwitterAuthProvider).toBeDefined();
513523
});

packages/auth/lib/modular/index.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -795,6 +795,8 @@ export {
795795
OIDCAuthProvider,
796796
PhoneAuthProvider,
797797
PhoneMultiFactorGenerator,
798+
TotpMultiFactorGenerator,
799+
TotpSecret,
798800
TwitterAuthProvider,
799801
PhoneAuthState,
800802
} from '../index';

0 commit comments

Comments
 (0)