UNPKG

1.25 kBTypeScriptView Raw
1import { ICache } from './cache';
2import { Auth0ClientOptions, AuthorizationParams, AuthorizeOptions, LogoutOptions } from './global';
3/**
4 * @ignore
5 */
6export declare const GET_TOKEN_SILENTLY_LOCK_KEY = "auth0.lock.getTokenSilently";
7/**
8 * @ignore
9 */
10export declare const buildOrganizationHintCookieName: (clientId: string) => string;
11/**
12 * @ignore
13 */
14export declare const OLD_IS_AUTHENTICATED_COOKIE_NAME = "auth0.is.authenticated";
15/**
16 * @ignore
17 */
18export declare const buildIsAuthenticatedCookieName: (clientId: string) => string;
19/**
20 * @ignore
21 */
22export declare const cacheFactory: (location: string) => () => ICache;
23/**
24 * @ignore
25 */
26export declare const getAuthorizeParams: (clientOptions: Auth0ClientOptions & {
27 authorizationParams: AuthorizationParams;
28}, scope: string, authorizationParams: AuthorizationParams, state: string, nonce: string, code_challenge: string, redirect_uri: string | undefined, response_mode: string | undefined) => AuthorizeOptions;
29/**
30 * @ignore
31 *
32 * Function used to provide support for the deprecated onRedirect through openUrl.
33 */
34export declare const patchOpenUrlWithOnRedirect: <T extends Pick<LogoutOptions, "openUrl" | "onRedirect">>(options: T) => T;