Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Authress/react-starter-kit

Open more actions menu

Repository files navigation

Authress media banner

Authress Starter Kit: React

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.

Getting Started

  1. Fork this template repository to start a new React project: Fork this template
  2. Clone the new repository:
git clone git@github.com:Authress/react-starter-kit.git
  1. Run npm install and then npm run start. (Or use yarn/pnpm to install dependencies and then start the site.)

File Directory

  • src
    • main.tsx - Application Root and contains all the routes of the starter kit application
    • authressClient.tsx - Configuration for Authress for users to login
    • routes
      • home.tsx - Landing page which has login and logout buttons
      • protected.tsx - Page protected by user login via the login guard defined in the main.tsx file
Morty Proxy This is a proxified and sanitized view of the page, visit original site.