Skip to content

Commit 69a9107

Browse files
authored
feat: export AuthError class from main entry point (#1329)
1 parent 410adc7 commit 69a9107

File tree

3 files changed

+16
-7
lines changed

3 files changed

+16
-7
lines changed

src/exports/classes.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
1+
export {
2+
AuthError,
3+
CredentialsManagerError,
4+
WebAuthError,
5+
} from '../core/models';
16
export { default as Auth0, TimeoutError } from '../index';
2-
export { AuthError } from '../core/models/AuthError';

src/exports/hooks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export { useAuth0, Auth0Provider } from '../hooks';
1+
export { Auth0Provider, useAuth0 } from '../hooks';

src/index.ts

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,22 @@
1-
import { Auth0ClientFactory } from './factory/Auth0ClientFactory';
21
import type { IAuth0Client } from './core/interfaces/IAuth0Client';
2+
import { Auth0ClientFactory } from './factory/Auth0ClientFactory';
33
import type { Auth0Options } from './types';
4+
5+
export {
6+
AuthError,
7+
CredentialsManagerError,
8+
WebAuthError,
9+
} from './core/models';
410
export { TimeoutError } from './core/utils/fetchWithTimeout';
5-
export { useAuth0 } from './hooks/useAuth0';
611
export { Auth0Provider } from './hooks/Auth0Provider';
12+
export { useAuth0 } from './hooks/useAuth0';
13+
export * from './types';
714
export type {
8-
LocalAuthenticationOptions,
915
LocalAuthenticationLevel,
16+
LocalAuthenticationOptions,
1017
LocalAuthenticationStrategy,
1118
} from './types/platform-specific';
1219

13-
export * from './types';
14-
1520
/**
1621
* The main Auth0 client class.
1722
*

0 commit comments

Comments
 (0)