UNPKG

@auth0/auth0-spa-js

Version:

Auth0 SDK for Single Page Applications using Authorization Code Grant Flow with PKCE

66 lines (65 loc) 1.8 kB
import { PopupConfigOptions } from './global'; /** * @ignore */ export declare const DEFAULT_AUTHORIZE_TIMEOUT_IN_SECONDS = 60; /** * @ignore */ export declare const DEFAULT_POPUP_CONFIG_OPTIONS: PopupConfigOptions; /** * @ignore */ export declare const DEFAULT_SILENT_TOKEN_RETRY_COUNT = 3; /** * @ignore */ export declare const CLEANUP_IFRAME_TIMEOUT_IN_SECONDS = 2; /** * @ignore */ export declare const DEFAULT_FETCH_TIMEOUT_MS = 10000; export declare const CACHE_LOCATION_MEMORY = "memory"; export declare const CACHE_LOCATION_LOCAL_STORAGE = "localstorage"; /** * @ignore */ export declare const MISSING_REFRESH_TOKEN_ERROR_MESSAGE = "Missing Refresh Token"; /** * @ignore */ export declare const INVALID_REFRESH_TOKEN_ERROR_MESSAGE = "invalid refresh token"; /** * @ignore */ export declare const USER_BLOCKED_ERROR_MESSAGE = "user is blocked"; /** * @ignore * The error_description returned by the /authorize endpoint when MFA is required * but prompt=none prevents interaction (iframe silent auth flow). */ export declare const MFA_STEP_UP_ERROR_DESCRIPTION = "Multifactor authentication required"; /** * @ignore */ export declare const DEFAULT_SCOPE = "openid profile email"; /** * @ignore * The scope that requests an Online Refresh Token (non-rotating, session-bound). */ export declare const ONLINE_ACCESS_SCOPE = "online_access"; /** * @ignore */ export declare const DEFAULT_SESSION_CHECK_EXPIRY_DAYS = 1; /** * @ignore */ export declare const DEFAULT_AUTH0_CLIENT: { name: string; version: string; }; export declare const DEFAULT_NOW_PROVIDER: () => number; /** @ignore */ export declare const SESSION_EXPIRY_LEEWAY_SECONDS = 30; export declare const DEFAULT_AUDIENCE = "default";