diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml
index 35ac59a0..38790846 100644
--- a/.github/workflows/integration.yml
+++ b/.github/workflows/integration.yml
@@ -54,6 +54,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
+ with:
+ ref: ${{ github.event.pull_request.head.sha || github.ref }}
- name: Install dependencies
run: npm ci
diff --git a/examples/cra-react-router/package.json b/examples/cra-react-router/package.json
index 73095cb7..05f6f28d 100644
--- a/examples/cra-react-router/package.json
+++ b/examples/cra-react-router/package.json
@@ -5,13 +5,12 @@
"dependencies": {
"@auth0/auth0-react": "file:../..",
"@types/node": "^17.0.29",
- "@types/react": "^18.0.8",
- "@types/react-router-dom": "^5.3.3",
+ "@types/react": "file:../../node_modules/@types/react",
"react": "file:../../node_modules/react",
"react-dom": "file:../../node_modules/react-dom",
- "react-router-dom": "^6.3.0",
+ "react-router-dom": "^6.16.0",
"react-scripts": "^5.0.1",
- "typescript": "^4.6.3"
+ "typescript": "^4.9.4"
},
"scripts": {
"start": "react-scripts start",
diff --git a/examples/cra-react-router/src/App.tsx b/examples/cra-react-router/src/App.tsx
index 277106cb..7692b30b 100644
--- a/examples/cra-react-router/src/App.tsx
+++ b/examples/cra-react-router/src/App.tsx
@@ -22,7 +22,7 @@ function App() {
{error &&