Skip to main content
type BaseConfig = {
  projectId: string;
  customAuth?: CustomAuth;
  useMock?: boolean;
  debugging?: boolean;
  basePath?: string;
  secureIframeBasePath?: string;
  disableAnalytics?: boolean;
  nativeOAuthCallback?: string;
};
Base configuration for the core package.

Properties

PropertyTypeDescription
projectIdstringThe CDP Project ID.
customAuth?CustomAuthConfiguration for custom authentication with third-party identity providers. Use this when integrating with Auth0, Firebase, Cognito, or other IDPs. Example lines import { useAuth0 } from '@auth0/auth0-react'; const { getAccessTokenSilently } = useAuth0(); await initialize({ projectId: 'my-project', customAuth: { getJwt: getAccessTokenSilently } });
useMock?booleanWhether to use the mock implementation.
debugging?booleanWhether to enable debugging.
basePath?stringThe base path for the API.
secureIframeBasePath?stringThe base path for the secure iframe.
disableAnalytics?booleanWhether to disable analytics.
nativeOAuthCallback?stringThe callback URL for the native OAuth flow.