tyf
June 26, 2023, 6:15pm
3
Hello @markmark_kel !
The application login uri is not required and can be skipped for testing purposes, or altogether. None of our sample applications rely on an application login uri and allow for login via http://localhost:XXX
- Our react sample utilizes http://localhost:3000
for example:
The project needs to be configured with your Auth0 domain and client ID in order for the authentication flow to work.
To do this, first copy `src/auth_config.json.example` into a new file in the same folder called `src/auth_config.json`, and replace the values with your own Auth0 application credentials, and optionally the base URLs of your application and API:
```json
{
"domain": "{YOUR AUTH0 DOMAIN}",
"clientId": "{YOUR AUTH0 CLIENT ID}",
"audience": "{YOUR AUTH0 API_IDENTIFIER}",
"appOrigin": "{OPTIONAL: THE BASE URL OF YOUR APPLICATION (default: http://localhost:3000)}",
"apiOrigin": "{OPTIONAL: THE BASE URL OF YOUR API (default: http://localhost:3001)}"
}
```
**Note**: Do not specify a value for `audience` here if you do not wish to use the API part of the sample.
## Run the sample
### Compile and hot-reload for development
1 Like