UNPKG

react-auth-verification-context

Version:

react-auth-verification-context is a library that provides a way to manage authentication state in a React application. It is implemented using the React context API, which allows you to pass data through the component tree without having to pass props do

9 lines (8 loc) 268 B
import { FC, ReactNode } from 'react'; import { TAuth } from '../reducers/auth.reducer'; interface IAuthProviderProps { children: ReactNode; } declare const AuthProvider: FC<IAuthProviderProps>; declare function useAuth(): TAuth; export { AuthProvider, useAuth };