This sample demonstrates the integration of Auth0 React SDK into a React application created using create-react-app. The sample is a companion to the Auth0 React SDK Quickstart.
This sample demonstrates the following use cases:
- Go to Auth0 and click Sign Up.
- Use Google, GitHub, or Microsoft Account to login.
npm install
The project needs to be configured with your Auth0 domain and client ID in order for the authentication flow to work.
To do this, create a new file in the folder called src/auth_config.json
, with content like below.
{
"domain": "{YOUR AUTH0 DOMAIN}",
"clientId": "{YOUR AUTH0 CLIENT ID}"
}
npm run build