WithPageAuthRequired: (<P>(Component, options?) => React.FC<P>)

Type declaration

    • <P>(Component, options?): React.FC<P>
    • const MyProtectedPage = withPageAuthRequired(MyPage);
      

      When you wrap your pages in this higher order component and an anonymous user visits your page, they will be redirected to the login page and then returned to the page they were redirected from (after login).

      Type Parameters

      • P extends {}

      Parameters

      Returns React.FC<P>