@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.
Files changed (124) hide show
  1. package/LICENSE +201 -0
  2. package/lib/@types/coreJsPure.d.d.mts +2 -0
  3. package/lib/@types/expoKeycloakAuth.d.d.mts +25 -0
  4. package/lib/@types/expoKeycloakAuth.d.d.ts +16 -19
  5. package/lib/Authenticated.d.mts +33 -0
  6. package/lib/Authenticated.d.ts +4 -7
  7. package/lib/Authenticated.js +6 -6
  8. package/lib/Authenticated.mjs +4 -4
  9. package/lib/authConfig.d.mts +14 -0
  10. package/lib/authConfig.d.ts +0 -23
  11. package/lib/authConfig.js +1 -1
  12. package/lib/authConfig.mjs +1 -1
  13. package/lib/{chunk-JYEIPNPN.mjs → chunk-AOKVCTMY.mjs} +1 -1
  14. package/lib/{chunk-73FF4BX7.js → chunk-BJ2OPIMW.js} +4 -4
  15. package/lib/{chunk-QFP2JWHZ.js → chunk-BTCP7NB3.js} +3 -3
  16. package/lib/{chunk-DJW5IKQS.mjs → chunk-DKRUDENY.mjs} +1 -1
  17. package/lib/{chunk-S3M2DZ6G.js → chunk-E2X33LSD.js} +2 -2
  18. package/lib/{chunk-RTZ3CZKS.js → chunk-FXGWERIA.js} +2 -2
  19. package/lib/{chunk-NRD376XV.js → chunk-HDNHCVXT.js} +2 -2
  20. package/lib/{chunk-BTHRDOLL.mjs → chunk-NU2SJ3ST.mjs} +1 -1
  21. package/lib/{chunk-K2MQYDVB.mjs → chunk-SK4YK6KE.mjs} +1 -1
  22. package/lib/{chunk-JLIMB5OD.js → chunk-UBCNCE73.js} +2 -2
  23. package/lib/{chunk-6QZDLO3M.mjs → chunk-VLUTEDDM.mjs} +1 -1
  24. package/lib/{chunk-CLO6HIJN.mjs → chunk-ZVG3OFME.mjs} +2 -2
  25. package/lib/hooks/index.d.mts +9 -0
  26. package/lib/hooks/index.js +6 -6
  27. package/lib/hooks/index.mjs +3 -3
  28. package/lib/hooks/useAuthConfig.d.mts +6 -0
  29. package/lib/hooks/useAuthConfig.d.ts +0 -23
  30. package/lib/hooks/useAuthConfig.js +1 -1
  31. package/lib/hooks/useAuthConfig.mjs +1 -1
  32. package/lib/hooks/useCurrentRouteName/index.d.mts +3 -0
  33. package/lib/hooks/useCurrentRouteName/index.d.ts +0 -23
  34. package/lib/hooks/useCurrentRouteName/index.js +1 -1
  35. package/lib/hooks/useCurrentRouteName/index.mjs +1 -1
  36. package/lib/hooks/useCurrentRouteName/index.native.d.mts +3 -0
  37. package/lib/hooks/useCurrentRouteName/index.native.d.ts +0 -23
  38. package/lib/hooks/useCurrentRouteName/index.native.js +1 -1
  39. package/lib/hooks/useCurrentRouteName/index.native.mjs +1 -1
  40. package/lib/hooks/useKeycloak/index.d.mts +46 -0
  41. package/lib/hooks/useKeycloak/index.d.ts +0 -24
  42. package/lib/hooks/useKeycloak/index.js +4 -4
  43. package/lib/hooks/useKeycloak/index.mjs +2 -2
  44. package/lib/hooks/useKeycloak/useKeycloak.d.mts +2 -0
  45. package/lib/hooks/useKeycloak/useKeycloak.js +4 -4
  46. package/lib/hooks/useKeycloak/useKeycloak.mjs +2 -2
  47. package/lib/hooks/useKeycloak/useKeycloak.native.d.mts +20 -0
  48. package/lib/hooks/useKeycloak/useKeycloak.native.d.ts +0 -24
  49. package/lib/hooks/useKeycloak/useKeycloak.native.js +8 -8
  50. package/lib/hooks/useKeycloak/useKeycloak.native.mjs +1 -1
  51. package/lib/hooks/useLogin.d.mts +3 -0
  52. package/lib/hooks/useLogin.d.ts +0 -23
  53. package/lib/hooks/useLogin.js +4 -4
  54. package/lib/hooks/useLogin.mjs +3 -3
  55. package/lib/hooks/useTokensFromQuery/index.d.mts +3 -0
  56. package/lib/hooks/useTokensFromQuery/index.d.ts +0 -23
  57. package/lib/hooks/useTokensFromQuery/index.js +1 -1
  58. package/lib/hooks/useTokensFromQuery/index.mjs +1 -1
  59. package/lib/hooks/useTokensFromQuery/index.native.d.mts +3 -0
  60. package/lib/hooks/useTokensFromQuery/index.native.d.ts +0 -23
  61. package/lib/hooks/useTokensFromQuery/index.native.js +1 -1
  62. package/lib/hooks/useTokensFromQuery/index.native.mjs +1 -1
  63. package/lib/hooks/useTokensFromState.d.mts +3 -0
  64. package/lib/hooks/useTokensFromState.d.ts +0 -23
  65. package/lib/hooks/useTokensFromState.js +1 -1
  66. package/lib/hooks/useTokensFromState.mjs +1 -1
  67. package/lib/index.d.mts +13 -0
  68. package/lib/index.js +15 -15
  69. package/lib/index.mjs +7 -7
  70. package/lib/provider/afterAuth.d.mts +29 -0
  71. package/lib/provider/afterAuth.d.ts +4 -7
  72. package/lib/provider/afterAuth.js +5 -5
  73. package/lib/provider/afterAuth.mjs +4 -4
  74. package/lib/provider/index.d.mts +39 -0
  75. package/lib/provider/index.d.ts +4 -7
  76. package/lib/provider/index.js +9 -9
  77. package/lib/provider/index.mjs +6 -6
  78. package/lib/provider/keycloakProvider.d.mts +42 -0
  79. package/lib/provider/keycloakProvider.d.ts +4 -7
  80. package/lib/provider/keycloakProvider.js +7 -7
  81. package/lib/provider/keycloakProvider.mjs +5 -5
  82. package/lib/provider/keycloakProvider.native.d.mts +29 -0
  83. package/lib/provider/keycloakProvider.native.d.ts +4 -7
  84. package/lib/provider/keycloakProvider.native.js +5 -5
  85. package/lib/provider/keycloakProvider.native.mjs +4 -4
  86. package/lib/state/index.d.mts +11 -0
  87. package/lib/state/index.d.ts +0 -23
  88. package/lib/state/index.js +1 -1
  89. package/lib/state/index.mjs +1 -1
  90. package/lib/types.d.mts +17 -0
  91. package/lib/types.d.ts +0 -23
  92. package/lib/types.js +1 -1
  93. package/lib/types.mjs +1 -1
  94. package/lib/util.d.mts +4 -0
  95. package/lib/util.d.ts +0 -23
  96. package/lib/util.js +1 -1
  97. package/lib/util.mjs +1 -1
  98. package/package.json +21 -37
  99. package/src/@types/coreJsPure.d.ts +16 -19
  100. package/src/@types/expoKeycloakAuth.d.ts +16 -19
  101. package/src/Authenticated.tsx +4 -7
  102. package/src/authConfig.ts +16 -19
  103. package/src/hooks/index.ts +16 -19
  104. package/src/hooks/useAuthConfig.ts +16 -19
  105. package/src/hooks/useCurrentRouteName/index.native.ts +16 -19
  106. package/src/hooks/useCurrentRouteName/index.ts +16 -19
  107. package/src/hooks/useKeycloak/index.ts +16 -19
  108. package/src/hooks/useKeycloak/useKeycloak.native.ts +16 -19
  109. package/src/hooks/useKeycloak/useKeycloak.ts +16 -19
  110. package/src/hooks/useLogin.ts +16 -19
  111. package/src/hooks/useTokensFromQuery/index.native.ts +16 -19
  112. package/src/hooks/useTokensFromQuery/index.ts +16 -19
  113. package/src/hooks/useTokensFromState.ts +16 -19
  114. package/src/index.ts +16 -19
  115. package/src/provider/afterAuth.tsx +4 -7
  116. package/src/provider/index.tsx +4 -7
  117. package/src/provider/keycloakProvider.native.tsx +4 -7
  118. package/src/provider/keycloakProvider.tsx +4 -7
  119. package/src/state/index.ts +16 -19
  120. package/src/types.ts +16 -19
  121. package/src/util.ts +16 -19
  122. package/README.md +0 -3
  123. /package/lib/{chunk-XXPGZHWZ.js → chunk-KMAXXKJT.js} +0 -0
  124. /package/lib/{chunk-NHABU752.mjs → chunk-S237YNYQ.mjs} +0 -0
@@ -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
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
- require("./chunk-XXPGZHWZ.js");
5
+ require("./chunk-KMAXXKJT.js");
6
6
  // src/types.ts
7
7
  var types_default = null;
8
8
  exports.default = types_default;
package/lib/types.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import "./chunk-NHABU752.mjs";
1
+ import "./chunk-S237YNYQ.mjs";
2
2
 
3
3
  // src/types.ts
4
4
  var types_default = null;
package/lib/util.d.mts ADDED
@@ -0,0 +1,4 @@
1
+ declare function validToken(token: string | boolean, refreshToken?: string | boolean): string | boolean;
2
+ declare function isTokenValid(token: string): boolean;
3
+
4
+ export { isTokenValid, validToken };
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-XXPGZHWZ.js");
6
+ require("./chunk-KMAXXKJT.js");
7
7
  exports.isTokenValid = _chunkNWRANDZ6js.isTokenValid;
8
8
  exports.validToken = _chunkNWRANDZ6js.validToken;
package/lib/util.mjs CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  isTokenValid,
3
3
  validToken
4
4
  } from "./chunk-7MTPH6XK.mjs";
5
- import "./chunk-NHABU752.mjs";
5
+ import "./chunk-S237YNYQ.mjs";
6
6
  export {
7
7
  isTokenValid,
8
8
  validToken
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@multiplatform.one/keycloak",
3
- "version": "0.7.2",
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": "Risser Labs LLC",
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.2",
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
- "@babel/preset-env": "^7.22.5",
49
- "@babel/preset-flow": "^7.22.5",
50
- "@babel/preset-react": "^7.22.5",
51
- "@babel/preset-typescript": "^7.22.5",
52
- "@react-native-async-storage/async-storage": "^1.18.2",
53
- "@react-navigation/native": "^6.1.7",
54
- "@types/eslint": "^8.40.2",
55
- "@types/jest": "^29.5.2",
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.5.0",
57
+ "jest": "^29.7.0",
72
58
  "jest-sonar-reporter": "^2.0.0",
73
- "lockfile-lint": "^4.10.5",
74
- "multiplatform.one": "^0.7.2",
75
- "next": "^13.4.7",
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.71.8",
63
+ "react-native": "~0.72.6",
79
64
  "ts-node": "^10.9.1",
80
- "typescript": "^4.9.5"
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": ".mkpm/.tmp/reports",
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.31.0",
112
- "expo-auth-session": "^4.1.0",
113
- "solito": "^3.2.9"
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
- * File: /src/@types/coreJsPure.d.ts
3
- * Project: @multiplatform.one/keycloak
4
- * File Created: 28-11-2022 05:42:56
5
- * Author: Clay Risser
6
- * -----
7
- * Last Modified: 28-11-2022 05:44:35
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
- * 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
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
- * http://www.apache.org/licenses/LICENSE-2.0
13
+ * http://www.apache.org/licenses/LICENSE-2.0
17
14
  *
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.
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
- * File: /src/@types/expoKeycloakAuth.d.ts
3
- * Project: @multiplatform.one/keycloak
4
- * File Created: 28-11-2022 14:56:57
5
- * Author: Clay Risser
6
- * -----
7
- * Last Modified: 28-11-2022 14:57:43
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
- * 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
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
- * http://www.apache.org/licenses/LICENSE-2.0
13
+ * http://www.apache.org/licenses/LICENSE-2.0
17
14
  *
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.
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' {
@@ -1,13 +1,10 @@
1
1
  /**
2
- * File: /auth/Authenticated.tsx
3
- * Project: app
4
- * File Created: 08-11-2022 05:58:23
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
- * Last Modified: 22-11-2022 06:26:38
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
- * File: /src/authConfig.ts
3
- * Project: app
4
- * File Created: 08-11-2022 09:21:15
5
- * Author: Clay Risser
6
- * -----
7
- * Last Modified: 26-05-2023 08:07:00
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
- * 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
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
- * http://www.apache.org/licenses/LICENSE-2.0
13
+ * http://www.apache.org/licenses/LICENSE-2.0
17
14
  *
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.
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';
@@ -1,25 +1,22 @@
1
- /**
2
- * File: /src/hooks/index.ts
3
- * Project: app
4
- * File Created: 08-11-2022 06:34:56
5
- * Author: Clay Risser
6
- * -----
7
- * Last Modified: 26-05-2023 07:00:31
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
- * 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
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
- * http://www.apache.org/licenses/LICENSE-2.0
13
+ * http://www.apache.org/licenses/LICENSE-2.0
17
14
  *
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.
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
- * File: /src/hooks/useAuthConfig.ts
3
- * Project: app
4
- * File Created: 08-11-2022 09:20:41
5
- * Author: Clay Risser
6
- * -----
7
- * Last Modified: 25-11-2022 09:52:31
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
- * 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
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
- * http://www.apache.org/licenses/LICENSE-2.0
13
+ * http://www.apache.org/licenses/LICENSE-2.0
17
14
  *
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.
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
- * File: /src/hooks/useCurrentRouteName/index.native.ts
3
- * Project: @multiplatform.one/keycloak
4
- * File Created: 24-02-2023 06:30:36
5
- * Author: Clay Risser
6
- * -----
7
- * Last Modified: 24-02-2023 06:31:25
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
- * 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
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
- * http://www.apache.org/licenses/LICENSE-2.0
13
+ * http://www.apache.org/licenses/LICENSE-2.0
17
14
  *
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.
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
- * File: /src/hooks/useCurrentRouteName/index.ts
3
- * Project: @multiplatform.one/keycloak
4
- * File Created: 24-02-2023 06:30:32
5
- * Author: Clay Risser
6
- * -----
7
- * Last Modified: 24-02-2023 06:30:54
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
- * 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
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
- * http://www.apache.org/licenses/LICENSE-2.0
13
+ * http://www.apache.org/licenses/LICENSE-2.0
17
14
  *
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.
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
- * File: /src/hooks/useKeycloak/index.ts
3
- * Project: app
4
- * File Created: 08-11-2022 14:10:44
5
- * Author: Clay Risser
6
- * -----
7
- * Last Modified: 01-06-2023 13:55:42
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
- * 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
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
- * http://www.apache.org/licenses/LICENSE-2.0
13
+ * http://www.apache.org/licenses/LICENSE-2.0
17
14
  *
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.
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
- * File: /src/hooks/useKeycloak/useKeycloak.native.ts
3
- * Project: app
4
- * File Created: 08-11-2022 14:10:25
5
- * Author: Clay Risser
6
- * -----
7
- * Last Modified: 01-06-2023 14:04:46
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
- * 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
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
- * http://www.apache.org/licenses/LICENSE-2.0
13
+ * http://www.apache.org/licenses/LICENSE-2.0
17
14
  *
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.
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';