RequireAuth

RequireAuth() → {JSX.Element}

Component that controls the authorization status.
Route to unauthorized page if authentification invalid.
No props

Returns:

A JSX.Element depending on authorization statu

Type: 
JSX.Element
Example
RequireAuth()