React Redux Auth0 Kit screenshot

React Redux Auth0 Kit

Author Avatar Theme by Amaury1093
Updated: 5 Apr 2021
112 Stars

Minimal starter boilerplate project with CRA, React, Redux, React Router and Auth0 authentication

Categories

Overview

This is a minimal starter boilerplate project that includes React, Redux, React Router, and Auth0 authentication. It provides a live demo with a simple Facebook login via Auth0. The project aims to make it easy to add authentication to web applications using various authentication sources.

Features

  • Auth0: Allows for authentication with multiple sources, including social media platforms (Google, Facebook, Twitter, etc.) and enterprise identity systems (Windows Azure AD, Google Apps, etc.). It also supports traditional username/password databases and can generate signed JSON Web Tokens for secure API calls.
  • AuthService: Uses the auth0-lock library for user authentication and includes a module to manage local storage items. It uses the latest Auth0 Lock 10 version in popup mode for a seamless login experience.
  • Libraries: Uses only the necessary libraries, including React for building user interfaces, Redux as a state container, React Router for declarative routing, and create-react-app for all the required tooling.

Installation

  1. Create an Auth0 account
  2. Run the following commands:
npm install
npm start
  1. Make sure the src/utils/config.js file has the correct values from your Auth0 account.
  2. Open http://localhost:3000 to see the app running.

Summary

This minimal starter boilerplate project provides an easy way to add authentication to React web applications using technologies like React, Redux, React Router, and Auth0. It includes a live demo with a Facebook login via Auth0 and supports various authentication sources. The project also includes a AuthService module for managing authentication and a working example app that demonstrates the features in action.