UNPKG

@ryanar/react-auth-provider

Version:

> Easy to integrate react authentication management through context.

7 lines (6 loc) 222 B
import React from 'react'; export declare type IAuthContext = { authenticated: boolean; setAuthenticated: (isAuthenticated: boolean) => void; }; export declare const AuthContext: React.Context<IAuthContext>;