Skip to content
No description, website, or topics provided.
JavaScript HTML CSS
Branch: master
Clone or download
Latest commit 2ee6a7d Oct 30, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
public Initial commit from Create React App Oct 21, 2019
src cleaning up spaces Oct 30, 2019
.gitignore updates to code Oct 30, 2019 Update Oct 30, 2019
package-lock.json updates to code Oct 30, 2019
package.json updates to code Oct 30, 2019

This project was bootstrapped with Create React App.

Example of authenticating a React application using the Auth0 SPA SDK


There are some important features in this repo:

  • Using the Auth0 SPA SDK to create an React Context (auth0-context.js)
  • Storing auth information in React Context (auth0-context.js)
  • Protecting routes with a  component

Trying out this Repo

To try out this repo and see it in action:

  1. Clone the repo: git clone
  2. Install dependencies: npm install
  3. Change your credentials in auth0-context.js on line 19, 20
  4. Start the app: npm start
  5. View the app: http://localhost:3000
You can’t perform that action at this time.