import { createContext } from 'react' ; import { AuthClient } from './types' ; /**
 * Auth Context props
 */ export type IAuthContextProps < T extends AuthClient > = { /**
     * The single AuthClient of your application.
     */ authClient ? : T ; /**
     * Boolean indicating whenever the AuthClient has been initialized by AuthProvider
     */ initialized : boolean ; } ; param { IAuthContextProps } initialContext returns { React . Context } export function createAuthContext < T extends AuthClient > ( initialContext ? ) { return createContext ( { initialized : false , ... initialContext , } ) ; } export default createAuthContext ;