From 3c2e3afd85f47e151dd5269acf5a89e7ab870555 Mon Sep 17 00:00:00 2001 From: Frederik Prijck Date: Tue, 31 Oct 2023 09:40:57 +0100 Subject: [PATCH 1/2] Export all errors from SPA-JS --- src/index.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/index.tsx b/src/index.tsx index deb6158f..27064705 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -3,7 +3,7 @@ export { Auth0ProviderOptions, AppState, } from './auth0-provider'; -export { default as useAuth0 } from './use-auth0'; +export { default as useAuth0, useCustomAuth0 } from './use-auth0'; export { default as withAuth0, WithAuth0Props } from './with-auth0'; export { default as withAuthenticationRequired, @@ -30,5 +30,11 @@ export { InMemoryCache, LocalStorageCache, Cacheable, + TimeoutError, + MfaRequiredError, + PopupCancelledError, + PopupTimeoutError, + AuthenticationError, + MissingRefreshTokenError, } from '@auth0/auth0-spa-js'; export { OAuthError } from './errors'; From 169929bcdaa8c96df0e10402166da42e967d8c43 Mon Sep 17 00:00:00 2001 From: Frederik Prijck Date: Tue, 31 Oct 2023 09:47:23 +0100 Subject: [PATCH 2/2] revert --- src/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.tsx b/src/index.tsx index 27064705..b28ff8b5 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -3,7 +3,7 @@ export { Auth0ProviderOptions, AppState, } from './auth0-provider'; -export { default as useAuth0, useCustomAuth0 } from './use-auth0'; +export { default as useAuth0 } from './use-auth0'; export { default as withAuth0, WithAuth0Props } from './with-auth0'; export { default as withAuthenticationRequired,