Components

LoginLink

<LoginLink />

Constructor

LoginLink is a flavour of React Router Link that sends the user to a login first before taking them to the destination supplied in returnTo.

If you don't supply returnTo, the user will be logged in and return to the page the LoginLink is on (which is the default behaviour of the normal login link).

Use this when you want the user to go to another route in your app but be logged in when they arrive there.

Parameters:
Name Type Attributes Description
props.returnTo <optional>

the router URL that the user should be returned to after logging in

props.label <optional>

the text to be used inside the Link

View Source components/navigation/LoginLink.tsx, line 4