Auth0 Universal Components
    Preparing search index...

    Type Alias Auth0ComponentProviderProps

    Auth0ComponentProviderProps: (
        | {
            authContext?: AuthDetails["contextInterface"];
            mode?: "direct";
            proxyConfig?: never;
        }
        | {
            domain: string;
            mode: "proxy";
            proxyConfig: {
                baseUrl: string;
                fetcher?: (
                    url: string,
                    init?: RequestInit,
                    authParams?: FetcherAuthParams,
                ) => Promise<Response>;
            };
        }
    ) & {
        cacheConfig?: QueryCacheConfig;
        i18n?: I18nOptions;
        loader?: React.ReactNode;
        previewMode?: boolean;
        themeSettings?: ThemeSettings;
        toastSettings?: ToastSettings;
    }

    Props for Auth0ComponentProvider.

    Type Declaration

    • {
          authContext?: AuthDetails["contextInterface"];
          mode?: "direct";
          proxyConfig?: never;
      }
    • {
          domain: string;
          mode: "proxy";
          proxyConfig: {
              baseUrl: string;
              fetcher?: (
                  url: string,
                  init?: RequestInit,
                  authParams?: FetcherAuthParams,
              ) => Promise<Response>;
          };
      }
    • OptionalcacheConfig?: QueryCacheConfig

      TanStack Query cache config. Use { enabled: false } to disable.

    • Optionali18n?: I18nOptions
    • Optionalloader?: React.ReactNode
    • OptionalpreviewMode?: boolean
    • OptionalthemeSettings?: ThemeSettings
    • OptionaltoastSettings?: ToastSettings