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;
}
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
Optionali18n?: I18nOptions
Optionalloader?: React.ReactNode
OptionalpreviewMode?: boolean
OptionalthemeSettings?: ThemeSettings
OptionaltoastSettings?: ToastSettings
Props for Auth0ComponentProvider.