Skip to content
No description, website, or topics provided.
JavaScript HTML CSS
Branch: master
Clone or download
Latest commit 2ee6a7d Oct 30, 2019
Permalink
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
README.md Update README.md Oct 30, 2019
package-lock.json updates to code Oct 30, 2019
package.json updates to code Oct 30, 2019

README.md

This project was bootstrapped with Create React App.

Example of authenticating a React application using the Auth0 SPA SDK

Features

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 https://github.com/auth0-blog/react-auth0-spa-sdk-ga
  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.