Pizza 42 is a (fictitious) national pizza delivery chain. They’re in the process of modernizing their online ordering system and would like to use Auth0 for their identity needs. This demo showcases multiple features of Auth0 using its React SDK, primarily:
- Login with Google as Social Provider
- Protect routes using Access Token scopes
- Enrich user profile information with user_metadata
You can access a live demo here
Make sure to replace the values on auth_config.json file; take a look at the original repo for more information
You will also need to create a .env file with the variables: CLIENT_ID, BACKEND_CLIENT_ID, BACKEND_CLIENT_SECRET
This compiles and serves the React app and starts the backend API server on port 3001.
npm run dev
Compiles and minifies for production. It will also start up a server on port 3000
npm run prod