This repository is a repo template that contains an React example that uses Authress to Login. You can either Fork this repository to start with the template, or directly clone it above.
- Fork this template repository to start a new React project: Fork this template
- Clone the new repository:
git clone [email protected]:Authress/react-starter-kit.git
- Run
npm install
and thennpm run start
. (Or use yarn/pnpm to install dependencies and thenstart
the site.)
src
main.tsx
- Application Root and contains all the routes of the starter kit applicationauthressClient.tsx
- Configuration for Authress for users to loginroutes
home.tsx
- Landing page which has login and logout buttonsprotected.tsx
- Page protected by user login via the login guard defined in themain.tsx
file