diff --git a/src/index.ts b/src/index.ts index c16e7670d..5355641fc 100644 --- a/src/index.ts +++ b/src/index.ts @@ -7,8 +7,7 @@ import 'promise-polyfill/src/polyfill'; import 'fast-text-encoding'; import 'abortcontroller-polyfill/dist/abortcontroller-polyfill-only'; -// @ts-ignore -import Auth0Client from './Auth0Client'; +import Auth0Client_ from './Auth0Client'; import * as ClientStorage from './storage'; import { Auth0ClientOptions } from './global'; import { CACHE_LOCATION_MEMORY } from './constants'; @@ -26,7 +25,7 @@ export default async function createAuth0Client(options: Auth0ClientOptions) { options.scope = getUniqueScopes(options.scope, 'offline_access'); } - const auth0 = new Auth0Client(options); + const auth0 = new Auth0Client_(options); if ( auth0.cacheLocation === CACHE_LOCATION_MEMORY && @@ -44,4 +43,4 @@ export default async function createAuth0Client(options: Auth0ClientOptions) { return auth0; } -export type Auth0Client = Auth0Client; +export type Auth0Client = Auth0Client_;