@multiplatform.one/keycloak 0.7.2 → 0.7.4
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/LICENSE +201 -0
- package/lib/@types/coreJsPure.d.d.mts +2 -0
- package/lib/@types/expoKeycloakAuth.d.d.mts +25 -0
- package/lib/@types/expoKeycloakAuth.d.d.ts +16 -19
- package/lib/Authenticated.d.mts +33 -0
- package/lib/Authenticated.d.ts +4 -7
- package/lib/Authenticated.js +6 -6
- package/lib/Authenticated.mjs +4 -4
- package/lib/authConfig.d.mts +14 -0
- package/lib/authConfig.d.ts +0 -23
- package/lib/authConfig.js +1 -1
- package/lib/authConfig.mjs +1 -1
- package/lib/{chunk-JYEIPNPN.mjs → chunk-AOKVCTMY.mjs} +1 -1
- package/lib/{chunk-73FF4BX7.js → chunk-BJ2OPIMW.js} +4 -4
- package/lib/{chunk-QFP2JWHZ.js → chunk-BTCP7NB3.js} +3 -3
- package/lib/{chunk-DJW5IKQS.mjs → chunk-DKRUDENY.mjs} +1 -1
- package/lib/{chunk-S3M2DZ6G.js → chunk-E2X33LSD.js} +2 -2
- package/lib/{chunk-RTZ3CZKS.js → chunk-FXGWERIA.js} +2 -2
- package/lib/{chunk-NRD376XV.js → chunk-HDNHCVXT.js} +2 -2
- package/lib/{chunk-BTHRDOLL.mjs → chunk-NU2SJ3ST.mjs} +1 -1
- package/lib/{chunk-K2MQYDVB.mjs → chunk-SK4YK6KE.mjs} +1 -1
- package/lib/{chunk-JLIMB5OD.js → chunk-UBCNCE73.js} +2 -2
- package/lib/{chunk-6QZDLO3M.mjs → chunk-VLUTEDDM.mjs} +1 -1
- package/lib/{chunk-CLO6HIJN.mjs → chunk-ZVG3OFME.mjs} +2 -2
- package/lib/hooks/index.d.mts +9 -0
- package/lib/hooks/index.js +6 -6
- package/lib/hooks/index.mjs +3 -3
- package/lib/hooks/useAuthConfig.d.mts +6 -0
- package/lib/hooks/useAuthConfig.d.ts +0 -23
- package/lib/hooks/useAuthConfig.js +1 -1
- package/lib/hooks/useAuthConfig.mjs +1 -1
- package/lib/hooks/useCurrentRouteName/index.d.mts +3 -0
- package/lib/hooks/useCurrentRouteName/index.d.ts +0 -23
- package/lib/hooks/useCurrentRouteName/index.js +1 -1
- package/lib/hooks/useCurrentRouteName/index.mjs +1 -1
- package/lib/hooks/useCurrentRouteName/index.native.d.mts +3 -0
- package/lib/hooks/useCurrentRouteName/index.native.d.ts +0 -23
- package/lib/hooks/useCurrentRouteName/index.native.js +1 -1
- package/lib/hooks/useCurrentRouteName/index.native.mjs +1 -1
- package/lib/hooks/useKeycloak/index.d.mts +46 -0
- package/lib/hooks/useKeycloak/index.d.ts +0 -24
- package/lib/hooks/useKeycloak/index.js +4 -4
- package/lib/hooks/useKeycloak/index.mjs +2 -2
- package/lib/hooks/useKeycloak/useKeycloak.d.mts +2 -0
- package/lib/hooks/useKeycloak/useKeycloak.js +4 -4
- package/lib/hooks/useKeycloak/useKeycloak.mjs +2 -2
- package/lib/hooks/useKeycloak/useKeycloak.native.d.mts +20 -0
- package/lib/hooks/useKeycloak/useKeycloak.native.d.ts +0 -24
- package/lib/hooks/useKeycloak/useKeycloak.native.js +8 -8
- package/lib/hooks/useKeycloak/useKeycloak.native.mjs +1 -1
- package/lib/hooks/useLogin.d.mts +3 -0
- package/lib/hooks/useLogin.d.ts +0 -23
- package/lib/hooks/useLogin.js +4 -4
- package/lib/hooks/useLogin.mjs +3 -3
- package/lib/hooks/useTokensFromQuery/index.d.mts +3 -0
- package/lib/hooks/useTokensFromQuery/index.d.ts +0 -23
- package/lib/hooks/useTokensFromQuery/index.js +1 -1
- package/lib/hooks/useTokensFromQuery/index.mjs +1 -1
- package/lib/hooks/useTokensFromQuery/index.native.d.mts +3 -0
- package/lib/hooks/useTokensFromQuery/index.native.d.ts +0 -23
- package/lib/hooks/useTokensFromQuery/index.native.js +1 -1
- package/lib/hooks/useTokensFromQuery/index.native.mjs +1 -1
- package/lib/hooks/useTokensFromState.d.mts +3 -0
- package/lib/hooks/useTokensFromState.d.ts +0 -23
- package/lib/hooks/useTokensFromState.js +1 -1
- package/lib/hooks/useTokensFromState.mjs +1 -1
- package/lib/index.d.mts +13 -0
- package/lib/index.js +15 -15
- package/lib/index.mjs +7 -7
- package/lib/provider/afterAuth.d.mts +29 -0
- package/lib/provider/afterAuth.d.ts +4 -7
- package/lib/provider/afterAuth.js +5 -5
- package/lib/provider/afterAuth.mjs +4 -4
- package/lib/provider/index.d.mts +39 -0
- package/lib/provider/index.d.ts +4 -7
- package/lib/provider/index.js +9 -9
- package/lib/provider/index.mjs +6 -6
- package/lib/provider/keycloakProvider.d.mts +42 -0
- package/lib/provider/keycloakProvider.d.ts +4 -7
- package/lib/provider/keycloakProvider.js +7 -7
- package/lib/provider/keycloakProvider.mjs +5 -5
- package/lib/provider/keycloakProvider.native.d.mts +29 -0
- package/lib/provider/keycloakProvider.native.d.ts +4 -7
- package/lib/provider/keycloakProvider.native.js +5 -5
- package/lib/provider/keycloakProvider.native.mjs +4 -4
- package/lib/state/index.d.mts +11 -0
- package/lib/state/index.d.ts +0 -23
- package/lib/state/index.js +1 -1
- package/lib/state/index.mjs +1 -1
- package/lib/types.d.mts +17 -0
- package/lib/types.d.ts +0 -23
- package/lib/types.js +1 -1
- package/lib/types.mjs +1 -1
- package/lib/util.d.mts +4 -0
- package/lib/util.d.ts +0 -23
- package/lib/util.js +1 -1
- package/lib/util.mjs +1 -1
- package/package.json +21 -37
- package/src/@types/coreJsPure.d.ts +16 -19
- package/src/@types/expoKeycloakAuth.d.ts +16 -19
- package/src/Authenticated.tsx +4 -7
- package/src/authConfig.ts +16 -19
- package/src/hooks/index.ts +16 -19
- package/src/hooks/useAuthConfig.ts +16 -19
- package/src/hooks/useCurrentRouteName/index.native.ts +16 -19
- package/src/hooks/useCurrentRouteName/index.ts +16 -19
- package/src/hooks/useKeycloak/index.ts +16 -19
- package/src/hooks/useKeycloak/useKeycloak.native.ts +16 -19
- package/src/hooks/useKeycloak/useKeycloak.ts +16 -19
- package/src/hooks/useLogin.ts +16 -19
- package/src/hooks/useTokensFromQuery/index.native.ts +16 -19
- package/src/hooks/useTokensFromQuery/index.ts +16 -19
- package/src/hooks/useTokensFromState.ts +16 -19
- package/src/index.ts +16 -19
- package/src/provider/afterAuth.tsx +4 -7
- package/src/provider/index.tsx +4 -7
- package/src/provider/keycloakProvider.native.tsx +4 -7
- package/src/provider/keycloakProvider.tsx +4 -7
- package/src/state/index.ts +16 -19
- package/src/types.ts +16 -19
- package/src/util.ts +16 -19
- package/README.md +0 -3
- /package/lib/{chunk-XXPGZHWZ.js → chunk-KMAXXKJT.js} +0 -0
- /package/lib/{chunk-NHABU752.mjs → chunk-S237YNYQ.mjs} +0 -0
package/lib/types.d.mts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
interface Window {
|
|
3
|
+
ReactNativeWebView: {
|
|
4
|
+
postMessage: (body: string) => unknown;
|
|
5
|
+
};
|
|
6
|
+
webkit: {
|
|
7
|
+
messageHandlers: {
|
|
8
|
+
[key: string]: {
|
|
9
|
+
postMessage: (body: string) => unknown;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
declare const _default: null;
|
|
16
|
+
|
|
17
|
+
export { _default as default };
|
package/lib/types.d.ts
CHANGED
|
@@ -1,26 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* File: /src/types.ts
|
|
3
|
-
* Project: @multiplatform.one/keycloak
|
|
4
|
-
* File Created: 25-11-2022 10:27:53
|
|
5
|
-
* Author: Clay Risser
|
|
6
|
-
* -----
|
|
7
|
-
* Last Modified: 25-11-2022 10:28:25
|
|
8
|
-
* Modified By: Clay Risser
|
|
9
|
-
* -----
|
|
10
|
-
* Risser Labs LLC (c) Copyright 2022
|
|
11
|
-
*
|
|
12
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
13
|
-
* you may not use this file except in compliance with the License.
|
|
14
|
-
* You may obtain a copy of the License at
|
|
15
|
-
*
|
|
16
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
17
|
-
*
|
|
18
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
19
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
20
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
21
|
-
* See the License for the specific language governing permissions and
|
|
22
|
-
* limitations under the License.
|
|
23
|
-
*/
|
|
24
1
|
declare global {
|
|
25
2
|
interface Window {
|
|
26
3
|
ReactNativeWebView: {
|
package/lib/types.js
CHANGED
package/lib/types.mjs
CHANGED
package/lib/util.d.mts
ADDED
package/lib/util.d.ts
CHANGED
|
@@ -1,26 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* File: /src/util.ts
|
|
3
|
-
* Project: @multiplatform.one/keycloak
|
|
4
|
-
* File Created: 16-05-2023 06:29:32
|
|
5
|
-
* Author: Clay Risser
|
|
6
|
-
* -----
|
|
7
|
-
* Last Modified: 16-05-2023 06:33:36
|
|
8
|
-
* Modified By: Clay Risser
|
|
9
|
-
* -----
|
|
10
|
-
* Risser Labs LLC (c) Copyright 2022 - 2023
|
|
11
|
-
*
|
|
12
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
13
|
-
* you may not use this file except in compliance with the License.
|
|
14
|
-
* You may obtain a copy of the License at
|
|
15
|
-
*
|
|
16
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
17
|
-
*
|
|
18
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
19
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
20
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
21
|
-
* See the License for the specific language governing permissions and
|
|
22
|
-
* limitations under the License.
|
|
23
|
-
*/
|
|
24
1
|
declare function validToken(token: string | boolean, refreshToken?: string | boolean): string | boolean;
|
|
25
2
|
declare function isTokenValid(token: string): boolean;
|
|
26
3
|
|
package/lib/util.js
CHANGED
|
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3
3
|
value: true
|
|
4
4
|
});
|
|
5
5
|
var _chunkNWRANDZ6js = require("./chunk-NWRANDZ6.js");
|
|
6
|
-
require("./chunk-
|
|
6
|
+
require("./chunk-KMAXXKJT.js");
|
|
7
7
|
exports.isTokenValid = _chunkNWRANDZ6js.isTokenValid;
|
|
8
8
|
exports.validToken = _chunkNWRANDZ6js.validToken;
|
package/lib/util.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@multiplatform.one/keycloak",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.4",
|
|
4
4
|
"description": "keycloak client for multiplatform.one ecosystem",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib/index.mjs",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"types": "./lib/index.d.ts"
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
|
-
"author": "
|
|
17
|
+
"author": "BitSpur",
|
|
18
18
|
"sideEffects": false,
|
|
19
19
|
"keywords": [
|
|
20
20
|
"auth",
|
|
@@ -39,51 +39,35 @@
|
|
|
39
39
|
"@react-native-async-storage/async-storage": "^1.17.11",
|
|
40
40
|
"@react-navigation/native": "^6.0.14",
|
|
41
41
|
"expo-keycloak-auth": "1.0.14",
|
|
42
|
-
"multiplatform.one": "^0.7.
|
|
42
|
+
"multiplatform.one": "^0.7.5",
|
|
43
43
|
"next": "^13.0.5",
|
|
44
44
|
"react": "^18.2.0",
|
|
45
45
|
"react-native": "~0.68.5"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@
|
|
49
|
-
"@
|
|
50
|
-
"@
|
|
51
|
-
"@
|
|
52
|
-
"@
|
|
53
|
-
"@react
|
|
54
|
-
"@types/
|
|
55
|
-
"
|
|
56
|
-
"@types/lodash.camelcase": "^4.3.7",
|
|
57
|
-
"@types/lodash.startcase": "^4.4.7",
|
|
58
|
-
"@types/react": "^18.2.13",
|
|
59
|
-
"@types/react-native": "^0.72.2",
|
|
60
|
-
"@typescript-eslint/eslint-plugin": "^5.60.0",
|
|
61
|
-
"@typescript-eslint/parser": "^5.60.0",
|
|
62
|
-
"babel-plugin-fully-specified": "^1.3.0",
|
|
63
|
-
"cspell": "^6.31.1",
|
|
64
|
-
"esbuild": "^0.18.6",
|
|
65
|
-
"esbuild-plugin-babel": "^0.2.3",
|
|
66
|
-
"eslint": "^8.43.0",
|
|
67
|
-
"eslint-config-alloy": "^5.0.0",
|
|
68
|
-
"eslint-plugin-react": "^7.32.2",
|
|
69
|
-
"eslint-plugin-spellcheck": "^0.0.20",
|
|
48
|
+
"@react-native-async-storage/async-storage": "^1.19.3",
|
|
49
|
+
"@react-navigation/native": "^6.1.9",
|
|
50
|
+
"@types/jest": "^29.5.6",
|
|
51
|
+
"@types/lodash.camelcase": "^4.3.8",
|
|
52
|
+
"@types/lodash.startcase": "^4.4.8",
|
|
53
|
+
"@types/react": "^18.2.32",
|
|
54
|
+
"@types/react-native": "^0.72.5",
|
|
55
|
+
"cspell": "^7.3.8",
|
|
70
56
|
"expo-keycloak-auth": "1.0.14",
|
|
71
|
-
"jest": "^29.
|
|
57
|
+
"jest": "^29.7.0",
|
|
72
58
|
"jest-sonar-reporter": "^2.0.0",
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"prettier": "^2.8.8",
|
|
59
|
+
"multiplatform.one": "^0.7.5",
|
|
60
|
+
"next": "^13.5.6",
|
|
61
|
+
"prettier": "^3.0.3",
|
|
77
62
|
"react": "^18.2.0",
|
|
78
|
-
"react-native": "~0.
|
|
63
|
+
"react-native": "~0.72.6",
|
|
79
64
|
"ts-node": "^10.9.1",
|
|
80
|
-
"typescript": "
|
|
65
|
+
"typescript": "~5.2.2"
|
|
81
66
|
},
|
|
82
67
|
"engines": {
|
|
83
68
|
"node": ">=6.0.0"
|
|
84
69
|
},
|
|
85
70
|
"eslintIgnore": [
|
|
86
|
-
"dist",
|
|
87
71
|
"lib"
|
|
88
72
|
],
|
|
89
73
|
"jest": {
|
|
@@ -100,7 +84,7 @@
|
|
|
100
84
|
]
|
|
101
85
|
},
|
|
102
86
|
"jestSonar": {
|
|
103
|
-
"reportPath": "
|
|
87
|
+
"reportPath": "node_modules",
|
|
104
88
|
"reportFile": "test-report.xml",
|
|
105
89
|
"indent": 4
|
|
106
90
|
},
|
|
@@ -108,8 +92,8 @@
|
|
|
108
92
|
"@bitspur/keycloak-js": "^21.1.2",
|
|
109
93
|
"@bitspur/react-keycloak-ssr": "^4.0.14",
|
|
110
94
|
"@bitspur/react-keycloak-web": "^4.0.14",
|
|
111
|
-
"core-js-pure": "^3.
|
|
112
|
-
"expo-auth-session": "^
|
|
113
|
-
"solito": "^
|
|
95
|
+
"core-js-pure": "^3.33.1",
|
|
96
|
+
"expo-auth-session": "^5.2.2",
|
|
97
|
+
"solito": "^4.1.3"
|
|
114
98
|
}
|
|
115
99
|
}
|
|
@@ -1,25 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* Modified By: Clay Risser
|
|
9
|
-
* -----
|
|
10
|
-
* Risser Labs LLC (c) Copyright 2022
|
|
1
|
+
/*
|
|
2
|
+
* File: /src/@types/coreJsPure.d.ts
|
|
3
|
+
* Project: @multiplatform.one/keycloak
|
|
4
|
+
* File Created: 23-06-2023 09:00:47
|
|
5
|
+
* Author: Clay Risser
|
|
6
|
+
* -----
|
|
7
|
+
* BitSpur (c) Copyright 2021 - 2023
|
|
11
8
|
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
+
* you may not use this file except in compliance with the License.
|
|
11
|
+
* You may obtain a copy of the License at
|
|
15
12
|
*
|
|
16
|
-
*
|
|
13
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
17
14
|
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
15
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
16
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
17
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
18
|
+
* See the License for the specific language governing permissions and
|
|
19
|
+
* limitations under the License.
|
|
23
20
|
*/
|
|
24
21
|
|
|
25
22
|
// declare module 'core-js-pure/stable/atob' {
|
|
@@ -1,25 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* Modified By: Clay Risser
|
|
9
|
-
* -----
|
|
10
|
-
* Risser Labs LLC (c) Copyright 2022
|
|
1
|
+
/*
|
|
2
|
+
* File: /src/@types/expoKeycloakAuth.d.ts
|
|
3
|
+
* Project: @multiplatform.one/keycloak
|
|
4
|
+
* File Created: 22-06-2023 10:07:56
|
|
5
|
+
* Author: Clay Risser
|
|
6
|
+
* -----
|
|
7
|
+
* BitSpur (c) Copyright 2021 - 2023
|
|
11
8
|
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
+
* you may not use this file except in compliance with the License.
|
|
11
|
+
* You may obtain a copy of the License at
|
|
15
12
|
*
|
|
16
|
-
*
|
|
13
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
17
14
|
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
15
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
16
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
17
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
18
|
+
* See the License for the specific language governing permissions and
|
|
19
|
+
* limitations under the License.
|
|
23
20
|
*/
|
|
24
21
|
|
|
25
22
|
declare module 'expo-keycloak-auth' {
|
package/src/Authenticated.tsx
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* File: /
|
|
3
|
-
* Project:
|
|
4
|
-
* File Created:
|
|
2
|
+
* File: /src/Authenticated.tsx
|
|
3
|
+
* Project: @multiplatform.one/keycloak
|
|
4
|
+
* File Created: 22-06-2023 10:07:56
|
|
5
5
|
* Author: Clay Risser
|
|
6
6
|
* -----
|
|
7
|
-
*
|
|
8
|
-
* Modified By: Clay Risser
|
|
9
|
-
* -----
|
|
10
|
-
* Risser Labs LLC (c) Copyright 2021 - 2022
|
|
7
|
+
* BitSpur (c) Copyright 2021 - 2023
|
|
11
8
|
*
|
|
12
9
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
13
10
|
* you may not use this file except in compliance with the License.
|
package/src/authConfig.ts
CHANGED
|
@@ -1,25 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* Modified By: Clay Risser
|
|
9
|
-
* -----
|
|
10
|
-
* Risser Labs LLC (c) Copyright 2021 - 2022
|
|
1
|
+
/*
|
|
2
|
+
* File: /src/authConfig.ts
|
|
3
|
+
* Project: @multiplatform.one/keycloak
|
|
4
|
+
* File Created: 22-06-2023 10:07:56
|
|
5
|
+
* Author: Clay Risser
|
|
6
|
+
* -----
|
|
7
|
+
* BitSpur (c) Copyright 2021 - 2023
|
|
11
8
|
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
+
* you may not use this file except in compliance with the License.
|
|
11
|
+
* You may obtain a copy of the License at
|
|
15
12
|
*
|
|
16
|
-
*
|
|
13
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
17
14
|
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
15
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
16
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
17
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
18
|
+
* See the License for the specific language governing permissions and
|
|
19
|
+
* limitations under the License.
|
|
23
20
|
*/
|
|
24
21
|
|
|
25
22
|
import { createContext } from 'react';
|
package/src/hooks/index.ts
CHANGED
|
@@ -1,25 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* Modified By: Clay Risser
|
|
9
|
-
* -----
|
|
10
|
-
* Risser Labs LLC (c) Copyright 2021 - 2022
|
|
1
|
+
/*
|
|
2
|
+
* File: /src/hooks/index.ts
|
|
3
|
+
* Project: @multiplatform.one/keycloak
|
|
4
|
+
* File Created: 22-06-2023 10:07:56
|
|
5
|
+
* Author: Clay Risser
|
|
6
|
+
* -----
|
|
7
|
+
* BitSpur (c) Copyright 2021 - 2023
|
|
11
8
|
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
+
* you may not use this file except in compliance with the License.
|
|
11
|
+
* You may obtain a copy of the License at
|
|
15
12
|
*
|
|
16
|
-
*
|
|
13
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
17
14
|
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
15
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
16
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
17
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
18
|
+
* See the License for the specific language governing permissions and
|
|
19
|
+
* limitations under the License.
|
|
23
20
|
*/
|
|
24
21
|
|
|
25
22
|
export * from './useAuthConfig';
|
|
@@ -1,25 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* Modified By: Clay Risser
|
|
9
|
-
* -----
|
|
10
|
-
* Risser Labs LLC (c) Copyright 2021 - 2022
|
|
1
|
+
/*
|
|
2
|
+
* File: /src/hooks/useAuthConfig.ts
|
|
3
|
+
* Project: @multiplatform.one/keycloak
|
|
4
|
+
* File Created: 22-06-2023 10:07:56
|
|
5
|
+
* Author: Clay Risser
|
|
6
|
+
* -----
|
|
7
|
+
* BitSpur (c) Copyright 2021 - 2023
|
|
11
8
|
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
+
* you may not use this file except in compliance with the License.
|
|
11
|
+
* You may obtain a copy of the License at
|
|
15
12
|
*
|
|
16
|
-
*
|
|
13
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
17
14
|
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
15
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
16
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
17
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
18
|
+
* See the License for the specific language governing permissions and
|
|
19
|
+
* limitations under the License.
|
|
23
20
|
*/
|
|
24
21
|
|
|
25
22
|
import { useContext } from 'react';
|
|
@@ -1,25 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* Modified By: Clay Risser
|
|
9
|
-
* -----
|
|
10
|
-
* Risser Labs LLC (c) Copyright 2022 - 2023
|
|
1
|
+
/*
|
|
2
|
+
* File: /src/hooks/useCurrentRouteName/index.native.ts
|
|
3
|
+
* Project: @multiplatform.one/keycloak
|
|
4
|
+
* File Created: 22-06-2023 10:07:56
|
|
5
|
+
* Author: Clay Risser
|
|
6
|
+
* -----
|
|
7
|
+
* BitSpur (c) Copyright 2021 - 2023
|
|
11
8
|
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
+
* you may not use this file except in compliance with the License.
|
|
11
|
+
* You may obtain a copy of the License at
|
|
15
12
|
*
|
|
16
|
-
*
|
|
13
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
17
14
|
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
15
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
16
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
17
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
18
|
+
* See the License for the specific language governing permissions and
|
|
19
|
+
* limitations under the License.
|
|
23
20
|
*/
|
|
24
21
|
|
|
25
22
|
import { MultiPlatform } from 'multiplatform.one';
|
|
@@ -1,25 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* Modified By: Clay Risser
|
|
9
|
-
* -----
|
|
10
|
-
* Risser Labs LLC (c) Copyright 2022 - 2023
|
|
1
|
+
/*
|
|
2
|
+
* File: /src/hooks/useCurrentRouteName/index.ts
|
|
3
|
+
* Project: @multiplatform.one/keycloak
|
|
4
|
+
* File Created: 22-06-2023 10:07:56
|
|
5
|
+
* Author: Clay Risser
|
|
6
|
+
* -----
|
|
7
|
+
* BitSpur (c) Copyright 2021 - 2023
|
|
11
8
|
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
+
* you may not use this file except in compliance with the License.
|
|
11
|
+
* You may obtain a copy of the License at
|
|
15
12
|
*
|
|
16
|
-
*
|
|
13
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
17
14
|
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
15
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
16
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
17
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
18
|
+
* See the License for the specific language governing permissions and
|
|
19
|
+
* limitations under the License.
|
|
23
20
|
*/
|
|
24
21
|
|
|
25
22
|
import { MultiPlatform } from 'multiplatform.one';
|
|
@@ -1,25 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* Modified By: Clay Risser
|
|
9
|
-
* -----
|
|
10
|
-
* Risser Labs LLC (c) Copyright 2021 - 2022
|
|
1
|
+
/*
|
|
2
|
+
* File: /src/hooks/useKeycloak/index.ts
|
|
3
|
+
* Project: @multiplatform.one/keycloak
|
|
4
|
+
* File Created: 22-06-2023 10:07:56
|
|
5
|
+
* Author: Clay Risser
|
|
6
|
+
* -----
|
|
7
|
+
* BitSpur (c) Copyright 2021 - 2023
|
|
11
8
|
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
+
* you may not use this file except in compliance with the License.
|
|
11
|
+
* You may obtain a copy of the License at
|
|
15
12
|
*
|
|
16
|
-
*
|
|
13
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
17
14
|
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
15
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
16
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
17
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
18
|
+
* See the License for the specific language governing permissions and
|
|
19
|
+
* limitations under the License.
|
|
23
20
|
*/
|
|
24
21
|
|
|
25
22
|
import type { KeycloakResourceAccess, KeycloakRoles, KeycloakTokenParsed } from '@bitspur/keycloak-js';
|
|
@@ -1,25 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* Modified By: Clay Risser
|
|
9
|
-
* -----
|
|
10
|
-
* Risser Labs LLC (c) Copyright 2021 - 2022
|
|
1
|
+
/*
|
|
2
|
+
* File: /src/hooks/useKeycloak/useKeycloak.native.ts
|
|
3
|
+
* Project: @multiplatform.one/keycloak
|
|
4
|
+
* File Created: 22-06-2023 10:07:56
|
|
5
|
+
* Author: Clay Risser
|
|
6
|
+
* -----
|
|
7
|
+
* BitSpur (c) Copyright 2021 - 2023
|
|
11
8
|
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
+
* you may not use this file except in compliance with the License.
|
|
11
|
+
* You may obtain a copy of the License at
|
|
15
12
|
*
|
|
16
|
-
*
|
|
13
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
17
14
|
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
15
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
16
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
17
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
18
|
+
* See the License for the specific language governing permissions and
|
|
19
|
+
* limitations under the License.
|
|
23
20
|
*/
|
|
24
21
|
|
|
25
22
|
import atob from 'core-js-pure/stable/atob';
|