Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix error in library type definitions #367

Merged
merged 1 commit into from
Mar 2, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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 &&
Expand All @@ -44,4 +43,4 @@ export default async function createAuth0Client(options: Auth0ClientOptions) {
return auth0;
}

export type Auth0Client = Auth0Client;
export type Auth0Client = Auth0Client_;