Skip to content

Commit 5456871

Browse files
committed
address feedback
1 parent 69a8a0a commit 5456871

7 files changed

Lines changed: 11 additions & 67 deletions

File tree

.circleci/config.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,17 @@ jobs:
2626
docker:
2727
- image: cimg/node:lts
2828
environment:
29-
- AUTH0_CFG: Sample-01/src/auth_config.json
3029
- SAMPLE_PATH: Sample-01
3130
steps:
3231
- node/install
3332
- attach_workspace:
3433
at: ~/
35-
- run:
36-
name: Replace Auth0 test credentials
37-
command: |
38-
echo "{ \"domain\": \"$AUTH0_TEST_DOMAIN\", \"clientId\": \"$AUTH0_TEST_CLIENT_ID\", \"audience\": \"$AUTH0_TEST_API_IDENTIFIER\" }" > $AUTH0_CFG
3934
- setup_remote_docker:
4035
version: 19.03.13
4136
- run:
4237
name: Build pull request
4338
command: |
44-
docker build -t $CIRCLE_JOB ./$SAMPLE_PATH
39+
docker build --build-arg AUTH0_DOMAIN=$AUTH0_TEST_DOMAIN --build-arg AUTH0_CLIENT_ID=$AUTH0_TEST_CLIENT_ID --build-arg AUTH0_AUDIENCE=$AUTH0_TEST_API_IDENTIFIER -t $CIRCLE_JOB ./$SAMPLE_PATH
4540
docker run -d -p 3000:3000 --name $CIRCLE_SHA1 $CIRCLE_JOB
4641
- run:
4742
name: Wait for app to be available

Sample-01/.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ AUTH0_CLIENT_ID={yourClientId}
33
# AUTH0_AUDIENCE={yourApiIdentifier}
44

55
# APP_BASE_URL=https://your-app.com
6-
# API_BASE_URL=https://your-api-server.com
6+
# API_BASE_URL=https://your-api-server.com

Sample-01/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Auth0 React SDK Sample Application
22

3-
This sample demonstrates the integration of [Auth0 React SDK](https://github.com/auth0/auth0-react) into a React application created using [Vite](https://reactjs.org/docs/create-a-new-react-app.html). The sample is a companion to the [Auth0 React SDK Quickstart](https://auth0.com/docs/quickstart/spa/react).
3+
This sample demonstrates the integration of [Auth0 React SDK](https://github.com/auth0/auth0-react) into a React application created using [Vite](https://vite.dev). The sample is a companion to the [Auth0 React SDK Quickstart](https://auth0.com/docs/quickstart/spa/react).
44

55
This sample demonstrates the following use cases:
66

Sample-01/exec.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ docker build `
1616
--build-arg "API_BASE_URL=$($envVars['API_BASE_URL'])" `
1717
-t auth0-react-01-login .
1818

19-
docker run --init -p 3000:3000 -p 3001:3001 --env-file .env.local -it auth0-react-01-login
19+
docker run --init -p 3000:3000 -p 3001:3001 --env-file .env.local -it auth0-react-01-login

Sample-01/exec.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ if [ ! -f .env.local ]; then
44
exit 1
55
fi
66

7-
export $(grep -v '^#' .env.local | grep -v '^$' | xargs)
7+
AUTH0_DOMAIN=$(grep '^AUTH0_DOMAIN=' .env.local | cut -d '=' -f2-)
8+
AUTH0_CLIENT_ID=$(grep '^AUTH0_CLIENT_ID=' .env.local | cut -d '=' -f2-)
9+
AUTH0_AUDIENCE=$(grep '^AUTH0_AUDIENCE=' .env.local | cut -d '=' -f2-)
10+
API_BASE_URL=$(grep '^API_BASE_URL=' .env.local | cut -d '=' -f2-)
811

912
docker build \
1013
--build-arg AUTH0_DOMAIN="$AUTH0_DOMAIN" \
@@ -13,4 +16,4 @@ docker build \
1316
--build-arg API_BASE_URL="$API_BASE_URL" \
1417
-t auth0-react-02-calling-an-api .
1518

16-
docker run --init -p 3000:3000 -p 3001:3001 --env-file .env.local -it auth0-react-02-calling-an-api
19+
docker run --init -p 3000:3000 -p 3001:3001 --env-file .env.local -it auth0-react-02-calling-an-api

Sample-01/package-lock.json

Lines changed: 1 addition & 55 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Sample-01/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"react": "^19.2.4",
3333
"react-bootstrap": "2.10.10",
3434
"react-dom": "^19.2.4",
35-
"react-router-dom": "^6.3",
35+
"react-router-dom": "^6",
3636
"vite": "^8.0.3"
3737
},
3838
"devDependencies": {

0 commit comments

Comments
 (0)