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.

16 lines (12 loc) 308 B
import { useAuthProviderContext } from "@contexts/auth"; /** * @returns authProvider if provided, otherwise null * @internal */ export const useActiveAuthProvider = () => { const authProvider = useAuthProviderContext(); if (authProvider.isProvided) { return authProvider; } return null; };