diff --git a/src/index.tsx b/src/index.tsx index 67921a0..a5e9ac4 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -84,13 +84,15 @@ export function configureAuth <>{JSON.stringify(error)}, + options = {}, }: { children: React.ReactNode renderLoading: () => JSX.Element renderUnauthenticated?: () => JSX.Element renderError?: (error: Error) => JSX.Element + options?: Omit, 'queryKey' | 'queryFn'> }) { - const { isSuccess, isFetched, status, data, error } = useUser() + const { isSuccess, isFetched, status, data, error } = useUser(options) if (isSuccess) { if (renderUnauthenticated && !data) {