Components

Protector

<Protector component />

Constructor

# <Protector component />

A wrapper component that handles the verification of users using built in authentication methods.

PropTypes:
Name Type Required Description Default
component elementType Yes The child component coming from the React Router switch statement that we are authenticating and passing down the tree.

View Source components/Protector.js, line 6

The child element that is passed in via props, wrapped in the HOC.

JSX.Element