@reactit/auth
Version:
The ultimate token basted authentication solution for React
12 lines (11 loc) • 362 B
TypeScript
import { ReactNode } from 'react';
export interface AuthGuardProps {
showAuth?: boolean;
showUnAuth?: boolean;
children: ReactNode;
}
/**
* A simple guard component to conditionally render the content
* in relation to the authentication state.
*/
export declare function AuthGuard({ showAuth, showUnAuth, children }: AuthGuardProps): JSX.Element;