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.

12 lines (9 loc) 248 B
import { useAuthProviderContext } from "@contexts/auth"; /** * A hook that the UI uses * @internal */ export const useIsExistAuthentication = (): boolean => { const { isProvided } = useAuthProviderContext(); return Boolean(isProvided); };