@opble/auth0-react 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +18 -0
  2. package/package.json +4 -3
package/README.md ADDED
@@ -0,0 +1,18 @@
1
+ # @opble/auth0-react
2
+
3
+ ## Getting started
4
+
5
+ 1. Install dependency
6
+ ```sh
7
+ npm install @opble/auth0-react
8
+ ```
9
+
10
+ 2. Include style.css
11
+ ```javascript
12
+ // main.tsx
13
+ import '@opble/auth0-react/style.css'
14
+ ```
15
+
16
+ ## Components
17
+
18
+ - `ProtectedRoute`: force users to sign in to use
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opble/auth0-react",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -36,10 +36,12 @@
36
36
  "provenance": false
37
37
  },
38
38
  "peerDependencies": {
39
+ "@auth0/auth0-react": "^2.9.0",
39
40
  "react": ">=19",
40
41
  "react-dom": ">=19"
41
42
  },
42
43
  "devDependencies": {
44
+ "@auth0/auth0-react": "^2.9.0",
43
45
  "@tailwindcss/vite": "^4.1.18",
44
46
  "@types/react": "^19.0.0",
45
47
  "@types/react-dom": "^19.0.0",
@@ -52,7 +54,6 @@
52
54
  "@opble/typescript-config": "0.0.0"
53
55
  },
54
56
  "dependencies": {
55
- "@auth0/auth0-react": "^2.11.0",
56
57
  "@opble/debug": "^1.0.0",
57
58
  "@opble/entity-auth": "^1.0.0",
58
59
  "@reduxjs/toolkit": "^2.11.2",
@@ -62,6 +63,6 @@
62
63
  "clean": "rm -rf dist",
63
64
  "lint": "eslint \"src/**/*.ts*\" --max-warnings 0",
64
65
  "build": "vite build && tsc --emitDeclarationOnly",
65
- "dev": "vite"
66
+ "dev": "vite build --watch"
66
67
  }
67
68
  }