UNPKG

1.29 kBTypeScriptView Raw
1import 'core-js/es/string/starts-with';
2import 'core-js/es/symbol';
3import 'core-js/es/array/from';
4import 'core-js/es/typed-array/slice';
5import 'core-js/es/array/includes';
6import 'core-js/es/string/includes';
7import 'core-js/es/set';
8import 'promise-polyfill/src/polyfill';
9import 'fast-text-encoding';
10import 'abortcontroller-polyfill/dist/abortcontroller-polyfill-only';
11import Auth0Client from './Auth0Client';
12import { Auth0ClientOptions } from './global';
13import './global';
14export * from './global';
15/**
16 * Asynchronously creates the Auth0Client instance and calls `checkSession`.
17 *
18 * **Note:** There are caveats to using this in a private browser tab, which may not silently authenticae
19 * a user on page refresh. Please see [the checkSession docs](https://auth0.github.io/auth0-spa-js/classes/auth0client.html#checksession) for more info.
20 *
21 * @param options The client options
22 * @returns An instance of Auth0Client
23 */
24export default function createAuth0Client(options: Auth0ClientOptions): Promise<Auth0Client>;
25export { Auth0Client };
26export { GenericError, AuthenticationError, TimeoutError, PopupTimeoutError, PopupCancelledError, MfaRequiredError } from './errors';
27export { ICache, LocalStorageCache, InMemoryCache, Cacheable } from './cache';