UNPKG

@refinedev/core

Version:

Refine is a React meta-framework for building enterprise-level, data-intensive applications rapidly with support for modern UI libraries and headless integrations.

15 lines 805 B
import { type UseQueryOptions, type UseQueryResult } from "@tanstack/react-query"; import type { CheckResponse } from "../../../contexts/auth/types"; export type UseIsAuthenticatedProps = { queryOptions?: Omit<UseQueryOptions<CheckResponse>, "queryKey" | "queryFn">; params?: any; }; export type UseIsAuthenticatedReturnType = UseQueryResult<CheckResponse, any>; /** * `useIsAuthenticated` calls `check` method from {@link https://refine.dev/docs/authentication/auth-provider/#check `authProvider`} under the hood. * * @see {@link https://refine.dev/docs/api-reference/core/hooks/auth/useIsAuthenticated} for more details. * */ export declare function useIsAuthenticated({ queryOptions, params, }?: UseIsAuthenticatedProps): UseIsAuthenticatedReturnType; //# sourceMappingURL=index.d.ts.map