RequireAuth()
function RequireAuth(children: RequireAuthProps): Element;
A React component that ensures authentication for its children.
If the user is authorized, it renders the children within the AuthManager context. Otherwise, it renders the Login component to prompt for authentication, passing relevant props.
Parameters
children
RequireAuthProps
The child components to render, which require authentication.
Returns
Element