Additional resources
Before installing any forms complete the following steps:
To add the form to your React project, first install @userfront/react
with npm.
UserfrontProvider
Initialize the Userfront UI Toolkit for React with your workspace ID using the UserfrontProvider
.
You should wrap your root layout with this so that forms can be placed anywhere in your application.
You can add as many forms as you would like across your application.
To have a working application ensure you have the following forms at their associated paths:
Form name | Redirect path name |
---|---|
Login form | After-logout path |
Password reset form | Password reset path |
The signup form will:
Install by copying the code below and pasting it in your application.
See a demo on CodeSandbox
The login form will:
lastActiveAt
attributeTo handle login links correctly put a login form at your After-logout path.
Install by copying the code below and pasting it in your application.
The password reset form will:
To handle password resets correctly put a password reset form at your Password reset path.
Install by copying the code below and pasting it in your application.
The logout button will:
Install by copying the code below and pasting it in your application.