This App is based on the Auth0 SPA JS Login Quickstart and the Auth0 Calling an API Quickstart. To make thing easier, the lab combines the two and utilizes a proxy provider for state management.
It is part of the Auth Rocks developer workshop presented by Okta
- In your tenant's application settings, be sure eto set 
https://*.local-credentialless.webcontainer.ioin the following configurations:Allowed Callback URLAllowed Web OriginAllowed Origins (CORS)
 - Open the 
config.jsfile. - If the 
domainandclientIdare not already set, copy the appropriate values from the SPA app created in your tenant. 
/*
 * config.js
 */
const config = {
	auth: {
		...defaultAuthConfig,
		domain: 'atko-rocks-gentle-animal.demo-platform-staging.auth0app.com',
		clientId: 'RBz9va21UvCeuSTYT9nMoRTZah1iTnoH',
	},
	app: {
		port: 3000,
	},
};- If you opted to set your API 
audiencevalue to something other than as instructed, copy theaudiencevalue from theIdentifierfield found on the API you created in your tenant and paste it into theconfig.jsfile. 
/*
 * config.js
 */
const config = {
	auth: {
		...defaultAuthConfig,
		domain: 'atko-rocks-gentle-animal.demo-platform-staging.auth0app.com',
		clientId: 'RBz9va21UvCeuSTYT9nMoRTZah1iTnoH',
		/* UNCOMMENT this line ( ⌘ + / or CTRL + / ) to test the private API */
		// audience: ['api://authrocks'],
	},
	app: {
		port: 3000,
	},
};- Uncomment line 
11ofconfig.jsto test the private api. 
This project is licensed under the MIT license. See the LICENSE file for more info.