@opble/auth0-react 1.0.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.
- package/README.md +18 -0
- package/dist/components/AccessForbidden.d.ts +7 -0
- package/dist/components/AccessForbidden.d.ts.map +1 -0
- package/dist/components/AuthClearing.d.ts +2 -0
- package/dist/components/AuthClearing.d.ts.map +1 -0
- package/dist/components/AuthError.d.ts +9 -0
- package/dist/components/AuthError.d.ts.map +1 -0
- package/dist/components/AuthLoading.d.ts +2 -0
- package/dist/components/AuthLoading.d.ts.map +1 -0
- package/dist/components/ProtectedRoute.d.ts +23 -0
- package/dist/components/ProtectedRoute.d.ts.map +1 -0
- package/dist/components/Unauthorized.d.ts +8 -0
- package/dist/components/Unauthorized.d.ts.map +1 -0
- package/dist/helpers/jwt.d.ts +6 -0
- package/dist/helpers/jwt.d.ts.map +1 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8184 -3
- package/dist/slices/auth.d.ts +4 -0
- package/dist/slices/auth.d.ts.map +1 -0
- package/dist/slices/selectors.d.ts +11 -0
- package/dist/slices/selectors.d.ts.map +1 -0
- package/dist/slices/types.d.ts +10 -0
- package/dist/slices/types.d.ts.map +1 -0
- package/dist/util/rtk.d.ts +5 -0
- package/dist/util/rtk.d.ts.map +1 -0
- package/package.json +35 -7
- package/dist/components/RedBanner.d.ts +0 -2
- package/dist/components/RedBanner.d.ts.map +0 -1
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { AuthSliceState } from './types';
|
|
2
|
+
export declare const clearAuth: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"auth/clearAuth">, setAccessToken: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "auth/setAccessToken">, setUser: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "auth/setUser">;
|
|
3
|
+
export declare const authReducer: import("@reduxjs/toolkit").Reducer<AuthSliceState>;
|
|
4
|
+
//# sourceMappingURL=auth.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/slices/auth.ts"],"names":[],"mappings":"AAEA,OAAO,EAAmB,cAAc,EAAE,MAAM,SAAS,CAAC;AAkB1D,eAAO,MAAQ,SAAS,4EAAE,cAAc,mFAAE,OAAO,0EAAkB,CAAC;AACpE,eAAO,MAAM,WAAW,oDAAgB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AuthState } from './types';
|
|
2
|
+
export declare const selectAccessToken: (state: AuthState) => string | undefined;
|
|
3
|
+
export declare const selectUser: (state: AuthState) => {
|
|
4
|
+
id: string;
|
|
5
|
+
email: string;
|
|
6
|
+
emailVerified: boolean;
|
|
7
|
+
role: string[];
|
|
8
|
+
permissions: string[];
|
|
9
|
+
name?: string | undefined;
|
|
10
|
+
} | undefined;
|
|
11
|
+
//# sourceMappingURL=selectors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../../src/slices/selectors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,SAAS,EAAE,MAAM,SAAS,CAAC;AAErD,eAAO,MAAM,iBAAiB,GAAI,OAAO,SAAS,uBACd,CAAC;AAErC,eAAO,MAAM,UAAU,GAAI,OAAO,SAAS;;;;;;;aAAgC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SerializableUser } from '@opble/entity-auth';
|
|
2
|
+
export declare const authReducerPath = "auth";
|
|
3
|
+
export type AuthSliceState = {
|
|
4
|
+
accessToken?: string;
|
|
5
|
+
user?: SerializableUser;
|
|
6
|
+
};
|
|
7
|
+
export type AuthState = {
|
|
8
|
+
[authReducerPath]: AuthSliceState;
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/slices/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,eAAO,MAAM,eAAe,SAAS,CAAC;AAEtC,MAAM,MAAM,cAAc,GAAG;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,gBAAgB,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IACtB,CAAC,eAAe,CAAC,EAAE,cAAc,CAAC;CACnC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type SecureQueryConfig = {
|
|
2
|
+
baseUrl: string;
|
|
3
|
+
};
|
|
4
|
+
export declare const createSecureQuery: (config: SecureQueryConfig) => import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>;
|
|
5
|
+
//# sourceMappingURL=rtk.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rtk.d.ts","sourceRoot":"","sources":["../../src/util/rtk.ts"],"names":[],"mappings":"AAOA,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,QAAQ,iBAAiB,8NAgB1D,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opble/auth0-react",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
8
|
-
"files": [
|
|
9
|
-
"dist"
|
|
10
|
-
],
|
|
11
8
|
"exports": {
|
|
12
9
|
".": {
|
|
13
10
|
"types": "./dist/index.d.ts",
|
|
@@ -15,11 +12,36 @@
|
|
|
15
12
|
},
|
|
16
13
|
"./style.css": "./dist/index.css"
|
|
17
14
|
},
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "git+https://github.com/opble/node-packages.git",
|
|
18
|
+
"directory": "packages/auth0-react"
|
|
19
|
+
},
|
|
20
|
+
"keywords": [
|
|
21
|
+
"opble",
|
|
22
|
+
"auth0",
|
|
23
|
+
"react"
|
|
24
|
+
],
|
|
25
|
+
"files": [
|
|
26
|
+
"dist",
|
|
27
|
+
"README.md",
|
|
28
|
+
"LICENSE"
|
|
29
|
+
],
|
|
30
|
+
"bugs": {
|
|
31
|
+
"url": "https://github.com/opble/node-packages/issues"
|
|
32
|
+
},
|
|
33
|
+
"homepage": "https://github.com/opble/node-packages#readme",
|
|
34
|
+
"publishConfig": {
|
|
35
|
+
"access": "public",
|
|
36
|
+
"provenance": false
|
|
37
|
+
},
|
|
18
38
|
"peerDependencies": {
|
|
39
|
+
"@auth0/auth0-react": "^2.9.0",
|
|
19
40
|
"react": ">=19",
|
|
20
41
|
"react-dom": ">=19"
|
|
21
42
|
},
|
|
22
43
|
"devDependencies": {
|
|
44
|
+
"@auth0/auth0-react": "^2.9.0",
|
|
23
45
|
"@tailwindcss/vite": "^4.1.18",
|
|
24
46
|
"@types/react": "^19.0.0",
|
|
25
47
|
"@types/react-dom": "^19.0.0",
|
|
@@ -28,13 +50,19 @@
|
|
|
28
50
|
"tslib": "^2.8.1",
|
|
29
51
|
"typescript": "^5.9.3",
|
|
30
52
|
"vite": "^7.3.1",
|
|
31
|
-
"@opble/
|
|
32
|
-
"@opble/
|
|
53
|
+
"@opble/eslint-config": "0.0.0",
|
|
54
|
+
"@opble/typescript-config": "0.0.0"
|
|
55
|
+
},
|
|
56
|
+
"dependencies": {
|
|
57
|
+
"@opble/debug": "^1.0.0",
|
|
58
|
+
"@opble/entity-auth": "^1.0.0",
|
|
59
|
+
"@reduxjs/toolkit": "^2.11.2",
|
|
60
|
+
"react-redux": "^9.2.0"
|
|
33
61
|
},
|
|
34
62
|
"scripts": {
|
|
35
63
|
"clean": "rm -rf dist",
|
|
36
64
|
"lint": "eslint \"src/**/*.ts*\" --max-warnings 0",
|
|
37
65
|
"build": "vite build && tsc --emitDeclarationOnly",
|
|
38
|
-
"dev": "vite"
|
|
66
|
+
"dev": "vite build --watch"
|
|
39
67
|
}
|
|
40
68
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RedBanner.d.ts","sourceRoot":"","sources":["../../src/components/RedBanner.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,+CAMrB,CAAC"}
|