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 git@github.com:Authress/react-starter-kit.git- Run
npm installand thennpm run start. (Or use yarn/pnpm to install dependencies and thenstartthe site.)
srcmain.tsx- Application Root and contains all the routes of the starter kit applicationauthressClient.tsx- Configuration for Authress for users to loginrouteshome.tsx- Landing page which has login and logout buttonsprotected.tsx- Page protected by user login via the login guard defined in themain.tsxfile
