Function FiefAuthProvider

  • Provide the necessary context for Fief, especially the user session state.

    Every component nested inside this component will have access to the Fief hooks.

    Parameters

    Returns ReactNode

    Example

    import { FiefAuthProvider } from '@fief/fief/nextjs';
    import type { AppProps } from 'next/app';

    function MyApp({ Component, pageProps }: AppProps) {
    return (
    <FiefAuthProvider currentUserPath="/api/current-user">
    <Component {...pageProps} />
    </FiefAuthProvider>
    );
    };

    export default MyApp;

Generated using TypeDoc