Skip to content

hw-hello-world/pokta-CIAM-app-auth0

Repository files navigation

Auth0 React SDK Sample Application

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:

Project setup

Create a Free Auth0 Account if don't have yet

  1. Go to Auth0 and click Sign Up.
  2. Use Google, GitHub, or Microsoft Account to login.

Install dependencies

npm install

Configure credentials

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}"
}

Run the sample

npm run build