@multiplatform.one/keycloak 0.7.1 → 0.7.3

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 (125) hide show
  1. package/lib/@types/coreJsPure.d.d.mts +2 -0
  2. package/lib/@types/coreJsPure.d.d.ts +2 -0
  3. package/lib/@types/coreJsPure.d.js +1 -0
  4. package/lib/@types/coreJsPure.d.mjs +0 -0
  5. package/lib/@types/expoKeycloakAuth.d.d.mts +28 -0
  6. package/lib/@types/expoKeycloakAuth.d.d.ts +28 -0
  7. package/lib/@types/expoKeycloakAuth.d.js +1 -0
  8. package/lib/@types/expoKeycloakAuth.d.mjs +0 -0
  9. package/lib/Authenticated.d.mts +36 -0
  10. package/lib/Authenticated.d.ts +36 -0
  11. package/lib/Authenticated.js +19 -0
  12. package/lib/Authenticated.mjs +20 -0
  13. package/lib/authConfig.d.mts +37 -0
  14. package/lib/authConfig.d.ts +37 -0
  15. package/lib/authConfig.js +8 -0
  16. package/lib/authConfig.mjs +9 -0
  17. package/lib/chunk-2GUOEPFY.mjs +0 -0
  18. package/lib/chunk-3ZPHNEJL.js +11 -0
  19. package/lib/chunk-64PPU7Q3.mjs +13 -0
  20. package/lib/chunk-6NDWOV55.js +1 -0
  21. package/lib/chunk-7MTPH6XK.mjs +26 -0
  22. package/lib/chunk-A7UBOIAL.js +13 -0
  23. package/lib/chunk-AD6VPMID.mjs +20 -0
  24. package/lib/chunk-AOKVCTMY.mjs +76 -0
  25. package/lib/chunk-AYKQVWMR.mjs +0 -0
  26. package/lib/chunk-BJ2OPIMW.js +78 -0
  27. package/lib/chunk-BTCP7NB3.js +443 -0
  28. package/lib/chunk-C2FNSVJO.js +17 -0
  29. package/lib/chunk-DKRUDENY.mjs +265 -0
  30. package/lib/chunk-E2X33LSD.js +460 -0
  31. package/lib/chunk-FXGWERIA.js +161 -0
  32. package/lib/chunk-HDNHCVXT.js +33 -0
  33. package/lib/chunk-KLLABHIC.js +13 -0
  34. package/lib/chunk-KMAXXKJT.js +22 -0
  35. package/lib/chunk-L5HMOY4M.mjs +18 -0
  36. package/lib/chunk-NU2SJ3ST.mjs +84 -0
  37. package/lib/chunk-NWRANDZ6.js +98 -0
  38. package/lib/chunk-NXTVYIBR.mjs +11 -0
  39. package/lib/chunk-OYWAYMFN.js +17 -0
  40. package/lib/chunk-S237YNYQ.mjs +10 -0
  41. package/lib/chunk-SK4YK6KE.mjs +50 -0
  42. package/lib/chunk-UBCNCE73.js +56 -0
  43. package/lib/chunk-UBVYEZI3.js +1 -0
  44. package/lib/chunk-UOKDJT5L.mjs +16 -0
  45. package/lib/chunk-VLUTEDDM.mjs +41 -0
  46. package/lib/chunk-Y4XMF3R6.mjs +13 -0
  47. package/lib/chunk-YGNNHTFE.js +12 -0
  48. package/lib/chunk-ZVG3OFME.mjs +52 -0
  49. package/lib/hooks/index.d.mts +9 -0
  50. package/lib/hooks/index.d.ts +9 -0
  51. package/lib/hooks/index.js +23 -0
  52. package/lib/hooks/index.mjs +34 -0
  53. package/lib/hooks/useAuthConfig.d.mts +29 -0
  54. package/lib/hooks/useAuthConfig.d.ts +29 -0
  55. package/lib/hooks/useAuthConfig.js +8 -0
  56. package/lib/hooks/useAuthConfig.mjs +8 -0
  57. package/lib/hooks/useCurrentRouteName/index.d.mts +26 -0
  58. package/lib/hooks/useCurrentRouteName/index.d.ts +26 -0
  59. package/lib/hooks/useCurrentRouteName/index.js +7 -0
  60. package/lib/hooks/useCurrentRouteName/index.mjs +7 -0
  61. package/lib/hooks/useCurrentRouteName/index.native.d.mts +26 -0
  62. package/lib/hooks/useCurrentRouteName/index.native.d.ts +26 -0
  63. package/lib/hooks/useCurrentRouteName/index.native.js +14 -0
  64. package/lib/hooks/useCurrentRouteName/index.native.mjs +14 -0
  65. package/lib/hooks/useKeycloak/index.d.mts +70 -0
  66. package/lib/hooks/useKeycloak/index.d.ts +70 -0
  67. package/lib/hooks/useKeycloak/index.js +11 -0
  68. package/lib/hooks/useKeycloak/index.mjs +12 -0
  69. package/lib/hooks/useKeycloak/useKeycloak.d.mts +2 -0
  70. package/lib/hooks/useKeycloak/useKeycloak.d.ts +2 -0
  71. package/lib/hooks/useKeycloak/useKeycloak.js +10 -0
  72. package/lib/hooks/useKeycloak/useKeycloak.mjs +11 -0
  73. package/lib/hooks/useKeycloak/useKeycloak.native.d.mts +44 -0
  74. package/lib/hooks/useKeycloak/useKeycloak.native.d.ts +44 -0
  75. package/lib/hooks/useKeycloak/useKeycloak.native.js +80 -0
  76. package/lib/hooks/useKeycloak/useKeycloak.native.mjs +69 -0
  77. package/lib/hooks/useLogin.d.mts +26 -0
  78. package/lib/hooks/useLogin.d.ts +26 -0
  79. package/lib/hooks/useLogin.js +11 -0
  80. package/lib/hooks/useLogin.mjs +11 -0
  81. package/lib/hooks/useTokensFromQuery/index.d.mts +26 -0
  82. package/lib/hooks/useTokensFromQuery/index.d.ts +26 -0
  83. package/lib/hooks/useTokensFromQuery/index.js +7 -0
  84. package/lib/hooks/useTokensFromQuery/index.mjs +7 -0
  85. package/lib/hooks/useTokensFromQuery/index.native.d.mts +26 -0
  86. package/lib/hooks/useTokensFromQuery/index.native.d.ts +26 -0
  87. package/lib/hooks/useTokensFromQuery/index.native.js +10 -0
  88. package/lib/hooks/useTokensFromQuery/index.native.mjs +7 -0
  89. package/lib/hooks/useTokensFromState.d.mts +26 -0
  90. package/lib/hooks/useTokensFromState.d.ts +26 -0
  91. package/lib/hooks/useTokensFromState.js +9 -0
  92. package/lib/hooks/useTokensFromState.mjs +9 -0
  93. package/lib/index.d.mts +13 -0
  94. package/lib/index.d.ts +13 -0
  95. package/lib/index.js +15 -15
  96. package/lib/index.mjs +56 -0
  97. package/lib/provider/afterAuth.d.mts +32 -0
  98. package/lib/provider/afterAuth.d.ts +32 -0
  99. package/lib/provider/afterAuth.js +18 -0
  100. package/lib/provider/afterAuth.mjs +18 -0
  101. package/lib/provider/index.d.mts +42 -0
  102. package/lib/provider/index.d.ts +42 -0
  103. package/lib/provider/index.js +22 -0
  104. package/lib/provider/index.mjs +25 -0
  105. package/lib/provider/keycloakProvider.d.mts +45 -0
  106. package/lib/provider/keycloakProvider.d.ts +45 -0
  107. package/lib/provider/keycloakProvider.js +20 -0
  108. package/lib/provider/keycloakProvider.mjs +21 -0
  109. package/lib/provider/keycloakProvider.native.d.mts +32 -0
  110. package/lib/provider/keycloakProvider.native.d.ts +32 -0
  111. package/lib/provider/keycloakProvider.native.js +87 -0
  112. package/lib/provider/keycloakProvider.native.mjs +30 -0
  113. package/lib/state/index.d.mts +34 -0
  114. package/lib/state/index.d.ts +34 -0
  115. package/lib/state/index.js +7 -0
  116. package/lib/state/index.mjs +7 -0
  117. package/lib/types.d.mts +40 -0
  118. package/lib/types.d.ts +40 -0
  119. package/lib/types.js +8 -0
  120. package/lib/types.mjs +7 -0
  121. package/lib/util.d.mts +27 -0
  122. package/lib/util.d.ts +27 -0
  123. package/lib/util.js +8 -0
  124. package/lib/util.mjs +9 -0
  125. package/package.json +30 -30
@@ -0,0 +1,11 @@
1
+ import {
2
+ useLogin
3
+ } from "../chunk-VLUTEDDM.mjs";
4
+ import "../chunk-L5HMOY4M.mjs";
5
+ import "../chunk-NU2SJ3ST.mjs";
6
+ import "../chunk-Y4XMF3R6.mjs";
7
+ import "../chunk-64PPU7Q3.mjs";
8
+ import "../chunk-S237YNYQ.mjs";
9
+ export {
10
+ useLogin
11
+ };
@@ -0,0 +1,26 @@
1
+ /**
2
+ * File: /src/hooks/useTokensFromQuery/index.ts
3
+ * Project: @multiplatform.one/keycloak
4
+ * File Created: 15-05-2023 01:54:44
5
+ * Author: Clay Risser
6
+ * -----
7
+ * Last Modified: 16-05-2023 07:40:41
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
+ declare function useTokensFromQuery(): boolean;
25
+
26
+ export { useTokensFromQuery };
@@ -0,0 +1,26 @@
1
+ /**
2
+ * File: /src/hooks/useTokensFromQuery/index.ts
3
+ * Project: @multiplatform.one/keycloak
4
+ * File Created: 15-05-2023 01:54:44
5
+ * Author: Clay Risser
6
+ * -----
7
+ * Last Modified: 16-05-2023 07:40:41
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
+ declare function useTokensFromQuery(): boolean;
25
+
26
+ export { useTokensFromQuery };
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ var _chunkKLLABHICjs = require("../../chunk-KLLABHIC.js");
6
+ require("../../chunk-KMAXXKJT.js");
7
+ exports.useTokensFromQuery = _chunkKLLABHICjs.useTokensFromQuery;
@@ -0,0 +1,7 @@
1
+ import {
2
+ useTokensFromQuery
3
+ } from "../../chunk-NXTVYIBR.mjs";
4
+ import "../../chunk-S237YNYQ.mjs";
5
+ export {
6
+ useTokensFromQuery
7
+ };
@@ -0,0 +1,26 @@
1
+ /**
2
+ * File: /src/hooks/useTokensFromQuery/index.native.ts
3
+ * Project: @multiplatform.one/keycloak
4
+ * File Created: 15-05-2023 01:54:48
5
+ * Author: Clay Risser
6
+ * -----
7
+ * Last Modified: 16-05-2023 07:40:46
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
+ declare const useTokensFromQuery: () => boolean;
25
+
26
+ export { useTokensFromQuery };
@@ -0,0 +1,26 @@
1
+ /**
2
+ * File: /src/hooks/useTokensFromQuery/index.native.ts
3
+ * Project: @multiplatform.one/keycloak
4
+ * File Created: 15-05-2023 01:54:48
5
+ * Author: Clay Risser
6
+ * -----
7
+ * Last Modified: 16-05-2023 07:40:46
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
+ declare const useTokensFromQuery: () => boolean;
25
+
26
+ export { useTokensFromQuery };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ require("../../chunk-KMAXXKJT.js");
6
+ // src/hooks/useTokensFromQuery/index.native.ts
7
+ var useTokensFromQuery = function() {
8
+ return false;
9
+ };
10
+ exports.useTokensFromQuery = useTokensFromQuery;
@@ -0,0 +1,7 @@
1
+ import "../../chunk-S237YNYQ.mjs";
2
+
3
+ // src/hooks/useTokensFromQuery/index.native.ts
4
+ var useTokensFromQuery = () => false;
5
+ export {
6
+ useTokensFromQuery
7
+ };
@@ -0,0 +1,26 @@
1
+ /**
2
+ * File: /src/hooks/useTokensFromState.ts
3
+ * Project: @multiplatform.one/keycloak
4
+ * File Created: 16-05-2023 06:29:02
5
+ * Author: Clay Risser
6
+ * -----
7
+ * Last Modified: 16-05-2023 07:40: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
+ declare function useTokensFromState(): boolean;
25
+
26
+ export { useTokensFromState };
@@ -0,0 +1,26 @@
1
+ /**
2
+ * File: /src/hooks/useTokensFromState.ts
3
+ * Project: @multiplatform.one/keycloak
4
+ * File Created: 16-05-2023 06:29:02
5
+ * Author: Clay Risser
6
+ * -----
7
+ * Last Modified: 16-05-2023 07:40: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
+ declare function useTokensFromState(): boolean;
25
+
26
+ export { useTokensFromState };
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ var _chunkYGNNHTFEjs = require("../chunk-YGNNHTFE.js");
6
+ require("../chunk-C2FNSVJO.js");
7
+ require("../chunk-NWRANDZ6.js");
8
+ require("../chunk-KMAXXKJT.js");
9
+ exports.useTokensFromState = _chunkYGNNHTFEjs.useTokensFromState;
@@ -0,0 +1,9 @@
1
+ import {
2
+ useTokensFromState
3
+ } from "../chunk-UOKDJT5L.mjs";
4
+ import "../chunk-AD6VPMID.mjs";
5
+ import "../chunk-7MTPH6XK.mjs";
6
+ import "../chunk-S237YNYQ.mjs";
7
+ export {
8
+ useTokensFromState
9
+ };
@@ -0,0 +1,13 @@
1
+ export { Authenticated, AuthenticatedProps, withAuthenticated } from './Authenticated.mjs';
2
+ export { AuthConfig, AuthConfigContext, defaultAuthConfig } from './authConfig.mjs';
3
+ export { useAuthConfig } from './hooks/useAuthConfig.mjs';
4
+ export { useCurrentRouteName } from './hooks/useCurrentRouteName/index.mjs';
5
+ export { IKeycloak, ITokenParsed, Keycloak, useKeycloak } from './hooks/useKeycloak/index.mjs';
6
+ export { useLogin } from './hooks/useLogin.mjs';
7
+ export { useTokensFromQuery } from './hooks/useTokensFromQuery/index.mjs';
8
+ export { useTokensFromState } from './hooks/useTokensFromState.mjs';
9
+ export { AuthProvider, AuthProviderProps } from './provider/index.mjs';
10
+ export { KeycloakProvider, KeycloakProviderProps, MessageSchema, defaultKeycloakInitOptions } from './provider/keycloakProvider.mjs';
11
+ import 'react';
12
+ import '@bitspur/keycloak-js';
13
+ import '@bitspur/react-keycloak-core';
package/lib/index.d.ts ADDED
@@ -0,0 +1,13 @@
1
+ export { Authenticated, AuthenticatedProps, withAuthenticated } from './Authenticated.js';
2
+ export { AuthConfig, AuthConfigContext, defaultAuthConfig } from './authConfig.js';
3
+ export { useAuthConfig } from './hooks/useAuthConfig.js';
4
+ export { useCurrentRouteName } from './hooks/useCurrentRouteName/index.js';
5
+ export { IKeycloak, ITokenParsed, Keycloak, useKeycloak } from './hooks/useKeycloak/index.js';
6
+ export { useLogin } from './hooks/useLogin.js';
7
+ export { useTokensFromQuery } from './hooks/useTokensFromQuery/index.js';
8
+ export { useTokensFromState } from './hooks/useTokensFromState.js';
9
+ export { AuthProvider, AuthProviderProps } from './provider/index.js';
10
+ export { KeycloakProvider, KeycloakProviderProps, MessageSchema, defaultKeycloakInitOptions } from './provider/keycloakProvider.js';
11
+ import 'react';
12
+ import '@bitspur/keycloak-js';
13
+ import '@bitspur/react-keycloak-core';
package/lib/index.js CHANGED
@@ -2,33 +2,33 @@
2
2
  Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
- var _chunkRTZ3CZKSjs = require("./chunk-RTZ3CZKS.js");
6
- var _chunkQFP2JWHZjs = require("./chunk-QFP2JWHZ.js");
7
- require("./chunk-JLIMB5OD.js");
8
- var _chunk73FF4BX7js = require("./chunk-73FF4BX7.js");
5
+ var _chunkFXGWERIAjs = require("./chunk-FXGWERIA.js");
6
+ var _chunkBTCP7NB3js = require("./chunk-BTCP7NB3.js");
7
+ require("./chunk-UBCNCE73.js");
8
+ var _chunkBJ2OPIMWjs = require("./chunk-BJ2OPIMW.js");
9
9
  require("./chunk-UBVYEZI3.js");
10
10
  require("./chunk-6NDWOV55.js");
11
11
  var _chunkKLLABHICjs = require("./chunk-KLLABHIC.js");
12
- var _chunkNRD376XVjs = require("./chunk-NRD376XV.js");
12
+ var _chunkHDNHCVXTjs = require("./chunk-HDNHCVXT.js");
13
13
  var _chunkOYWAYMFNjs = require("./chunk-OYWAYMFN.js");
14
- var _chunkS3M2DZ6Gjs = require("./chunk-S3M2DZ6G.js");
14
+ var _chunkE2X33LSDjs = require("./chunk-E2X33LSD.js");
15
15
  var _chunk3ZPHNEJLjs = require("./chunk-3ZPHNEJL.js");
16
16
  var _chunkYGNNHTFEjs = require("./chunk-YGNNHTFE.js");
17
17
  require("./chunk-C2FNSVJO.js");
18
18
  var _chunkA7UBOIALjs = require("./chunk-A7UBOIAL.js");
19
19
  require("./chunk-NWRANDZ6.js");
20
- require("./chunk-XXPGZHWZ.js");
20
+ require("./chunk-KMAXXKJT.js");
21
21
  exports.AuthConfigContext = _chunkA7UBOIALjs.AuthConfigContext;
22
- exports.AuthProvider = _chunkRTZ3CZKSjs.AuthProvider;
23
- exports.Authenticated = _chunk73FF4BX7js.Authenticated;
24
- exports.Keycloak = _chunkS3M2DZ6Gjs.Keycloak;
25
- exports.KeycloakProvider = _chunkQFP2JWHZjs.KeycloakProvider;
22
+ exports.AuthProvider = _chunkFXGWERIAjs.AuthProvider;
23
+ exports.Authenticated = _chunkBJ2OPIMWjs.Authenticated;
24
+ exports.Keycloak = _chunkE2X33LSDjs.Keycloak;
25
+ exports.KeycloakProvider = _chunkBTCP7NB3js.KeycloakProvider;
26
26
  exports.defaultAuthConfig = _chunkA7UBOIALjs.defaultAuthConfig;
27
- exports.defaultKeycloakInitOptions = _chunkQFP2JWHZjs.defaultKeycloakInitOptions;
27
+ exports.defaultKeycloakInitOptions = _chunkBTCP7NB3js.defaultKeycloakInitOptions;
28
28
  exports.useAuthConfig = _chunk3ZPHNEJLjs.useAuthConfig;
29
29
  exports.useCurrentRouteName = _chunkOYWAYMFNjs.useCurrentRouteName;
30
- exports.useKeycloak = _chunkS3M2DZ6Gjs.useKeycloak;
31
- exports.useLogin = _chunkNRD376XVjs.useLogin;
30
+ exports.useKeycloak = _chunkE2X33LSDjs.useKeycloak;
31
+ exports.useLogin = _chunkHDNHCVXTjs.useLogin;
32
32
  exports.useTokensFromQuery = _chunkKLLABHICjs.useTokensFromQuery;
33
33
  exports.useTokensFromState = _chunkYGNNHTFEjs.useTokensFromState;
34
- exports.withAuthenticated = _chunk73FF4BX7js.withAuthenticated;
34
+ exports.withAuthenticated = _chunkBJ2OPIMWjs.withAuthenticated;
package/lib/index.mjs ADDED
@@ -0,0 +1,56 @@
1
+ import {
2
+ AuthProvider
3
+ } from "./chunk-AOKVCTMY.mjs";
4
+ import {
5
+ KeycloakProvider,
6
+ defaultKeycloakInitOptions
7
+ } from "./chunk-DKRUDENY.mjs";
8
+ import "./chunk-SK4YK6KE.mjs";
9
+ import {
10
+ Authenticated,
11
+ withAuthenticated
12
+ } from "./chunk-ZVG3OFME.mjs";
13
+ import "./chunk-AYKQVWMR.mjs";
14
+ import "./chunk-2GUOEPFY.mjs";
15
+ import {
16
+ useTokensFromQuery
17
+ } from "./chunk-NXTVYIBR.mjs";
18
+ import {
19
+ useLogin
20
+ } from "./chunk-VLUTEDDM.mjs";
21
+ import {
22
+ useCurrentRouteName
23
+ } from "./chunk-L5HMOY4M.mjs";
24
+ import {
25
+ Keycloak,
26
+ useKeycloak
27
+ } from "./chunk-NU2SJ3ST.mjs";
28
+ import {
29
+ useAuthConfig
30
+ } from "./chunk-Y4XMF3R6.mjs";
31
+ import {
32
+ useTokensFromState
33
+ } from "./chunk-UOKDJT5L.mjs";
34
+ import "./chunk-AD6VPMID.mjs";
35
+ import {
36
+ AuthConfigContext,
37
+ defaultAuthConfig
38
+ } from "./chunk-64PPU7Q3.mjs";
39
+ import "./chunk-7MTPH6XK.mjs";
40
+ import "./chunk-S237YNYQ.mjs";
41
+ export {
42
+ AuthConfigContext,
43
+ AuthProvider,
44
+ Authenticated,
45
+ Keycloak,
46
+ KeycloakProvider,
47
+ defaultAuthConfig,
48
+ defaultKeycloakInitOptions,
49
+ useAuthConfig,
50
+ useCurrentRouteName,
51
+ useKeycloak,
52
+ useLogin,
53
+ useTokensFromQuery,
54
+ useTokensFromState,
55
+ withAuthenticated
56
+ };
@@ -0,0 +1,32 @@
1
+ import { ReactNode, FC } from 'react';
2
+
3
+ /**
4
+ * File: /auth/provider/afterAuth.tsx
5
+ * Project: app
6
+ * File Created: 22-11-2022 17:49:58
7
+ * Author: Clay Risser
8
+ * -----
9
+ * Last Modified: 22-11-2022 18:00:39
10
+ * Modified By: Clay Risser
11
+ * -----
12
+ * Risser Labs LLC (c) Copyright 2021 - 2022
13
+ *
14
+ * Licensed under the Apache License, Version 2.0 (the "License");
15
+ * you may not use this file except in compliance with the License.
16
+ * You may obtain a copy of the License at
17
+ *
18
+ * http://www.apache.org/licenses/LICENSE-2.0
19
+ *
20
+ * Unless required by applicable law or agreed to in writing, software
21
+ * distributed under the License is distributed on an "AS IS" BASIS,
22
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
23
+ * See the License for the specific language governing permissions and
24
+ * limitations under the License.
25
+ */
26
+
27
+ interface AfterAuthProps {
28
+ children: ReactNode;
29
+ }
30
+ declare const AfterAuth: FC<AfterAuthProps>;
31
+
32
+ export { AfterAuth, AfterAuthProps };
@@ -0,0 +1,32 @@
1
+ import { ReactNode, FC } from 'react';
2
+
3
+ /**
4
+ * File: /auth/provider/afterAuth.tsx
5
+ * Project: app
6
+ * File Created: 22-11-2022 17:49:58
7
+ * Author: Clay Risser
8
+ * -----
9
+ * Last Modified: 22-11-2022 18:00:39
10
+ * Modified By: Clay Risser
11
+ * -----
12
+ * Risser Labs LLC (c) Copyright 2021 - 2022
13
+ *
14
+ * Licensed under the Apache License, Version 2.0 (the "License");
15
+ * you may not use this file except in compliance with the License.
16
+ * You may obtain a copy of the License at
17
+ *
18
+ * http://www.apache.org/licenses/LICENSE-2.0
19
+ *
20
+ * Unless required by applicable law or agreed to in writing, software
21
+ * distributed under the License is distributed on an "AS IS" BASIS,
22
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
23
+ * See the License for the specific language governing permissions and
24
+ * limitations under the License.
25
+ */
26
+
27
+ interface AfterAuthProps {
28
+ children: ReactNode;
29
+ }
30
+ declare const AfterAuth: FC<AfterAuthProps>;
31
+
32
+ export { AfterAuth, AfterAuthProps };
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ var _chunkUBCNCE73js = require("../chunk-UBCNCE73.js");
6
+ require("../chunk-UBVYEZI3.js");
7
+ require("../chunk-6NDWOV55.js");
8
+ require("../chunk-KLLABHIC.js");
9
+ require("../chunk-HDNHCVXT.js");
10
+ require("../chunk-OYWAYMFN.js");
11
+ require("../chunk-E2X33LSD.js");
12
+ require("../chunk-3ZPHNEJL.js");
13
+ require("../chunk-YGNNHTFE.js");
14
+ require("../chunk-C2FNSVJO.js");
15
+ require("../chunk-A7UBOIAL.js");
16
+ require("../chunk-NWRANDZ6.js");
17
+ require("../chunk-KMAXXKJT.js");
18
+ exports.AfterAuth = _chunkUBCNCE73js.AfterAuth;
@@ -0,0 +1,18 @@
1
+ import {
2
+ AfterAuth
3
+ } from "../chunk-SK4YK6KE.mjs";
4
+ import "../chunk-AYKQVWMR.mjs";
5
+ import "../chunk-2GUOEPFY.mjs";
6
+ import "../chunk-NXTVYIBR.mjs";
7
+ import "../chunk-VLUTEDDM.mjs";
8
+ import "../chunk-L5HMOY4M.mjs";
9
+ import "../chunk-NU2SJ3ST.mjs";
10
+ import "../chunk-Y4XMF3R6.mjs";
11
+ import "../chunk-UOKDJT5L.mjs";
12
+ import "../chunk-AD6VPMID.mjs";
13
+ import "../chunk-64PPU7Q3.mjs";
14
+ import "../chunk-7MTPH6XK.mjs";
15
+ import "../chunk-S237YNYQ.mjs";
16
+ export {
17
+ AfterAuth
18
+ };
@@ -0,0 +1,42 @@
1
+ import { AuthClientEvent, AuthClientError, AuthClientTokens } from '@bitspur/react-keycloak-core';
2
+ import { AuthConfig } from '../authConfig.mjs';
3
+ import { ReactNode, ComponentType, FC } from 'react';
4
+ import { KeycloakConfig, KeycloakInitOptions } from '@bitspur/keycloak-js';
5
+ export { KeycloakProvider, KeycloakProviderProps, MessageSchema, defaultKeycloakInitOptions } from './keycloakProvider.mjs';
6
+
7
+ /**
8
+ * File: /auth/provider/index.tsx
9
+ * Project: app
10
+ * File Created: 08-11-2022 06:33:07
11
+ * Author: Clay Risser
12
+ * -----
13
+ * Last Modified: 22-11-2022 18:00:13
14
+ * Modified By: Clay Risser
15
+ * -----
16
+ * Risser Labs LLC (c) Copyright 2021 - 2022
17
+ *
18
+ * Licensed under the Apache License, Version 2.0 (the "License");
19
+ * you may not use this file except in compliance with the License.
20
+ * You may obtain a copy of the License at
21
+ *
22
+ * http://www.apache.org/licenses/LICENSE-2.0
23
+ *
24
+ * Unless required by applicable law or agreed to in writing, software
25
+ * distributed under the License is distributed on an "AS IS" BASIS,
26
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
27
+ * See the License for the specific language governing permissions and
28
+ * limitations under the License.
29
+ */
30
+
31
+ interface AuthProviderProps extends Partial<Omit<AuthConfig, 'persist'>>, Partial<Omit<KeycloakConfig, 'url'>>, KeycloakInitOptions {
32
+ children: ReactNode;
33
+ cookies?: unknown;
34
+ disabled?: boolean;
35
+ baseUrl?: string;
36
+ loadingComponent?: ComponentType;
37
+ onEvent?: (eventType: AuthClientEvent, error?: AuthClientError) => void;
38
+ onTokens?: (tokens: AuthClientTokens) => void;
39
+ }
40
+ declare const AuthProvider: FC<AuthProviderProps>;
41
+
42
+ export { AuthProvider, AuthProviderProps };
@@ -0,0 +1,42 @@
1
+ import { AuthClientEvent, AuthClientError, AuthClientTokens } from '@bitspur/react-keycloak-core';
2
+ import { AuthConfig } from '../authConfig.js';
3
+ import { ReactNode, ComponentType, FC } from 'react';
4
+ import { KeycloakConfig, KeycloakInitOptions } from '@bitspur/keycloak-js';
5
+ export { KeycloakProvider, KeycloakProviderProps, MessageSchema, defaultKeycloakInitOptions } from './keycloakProvider.js';
6
+
7
+ /**
8
+ * File: /auth/provider/index.tsx
9
+ * Project: app
10
+ * File Created: 08-11-2022 06:33:07
11
+ * Author: Clay Risser
12
+ * -----
13
+ * Last Modified: 22-11-2022 18:00:13
14
+ * Modified By: Clay Risser
15
+ * -----
16
+ * Risser Labs LLC (c) Copyright 2021 - 2022
17
+ *
18
+ * Licensed under the Apache License, Version 2.0 (the "License");
19
+ * you may not use this file except in compliance with the License.
20
+ * You may obtain a copy of the License at
21
+ *
22
+ * http://www.apache.org/licenses/LICENSE-2.0
23
+ *
24
+ * Unless required by applicable law or agreed to in writing, software
25
+ * distributed under the License is distributed on an "AS IS" BASIS,
26
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
27
+ * See the License for the specific language governing permissions and
28
+ * limitations under the License.
29
+ */
30
+
31
+ interface AuthProviderProps extends Partial<Omit<AuthConfig, 'persist'>>, Partial<Omit<KeycloakConfig, 'url'>>, KeycloakInitOptions {
32
+ children: ReactNode;
33
+ cookies?: unknown;
34
+ disabled?: boolean;
35
+ baseUrl?: string;
36
+ loadingComponent?: ComponentType;
37
+ onEvent?: (eventType: AuthClientEvent, error?: AuthClientError) => void;
38
+ onTokens?: (tokens: AuthClientTokens) => void;
39
+ }
40
+ declare const AuthProvider: FC<AuthProviderProps>;
41
+
42
+ export { AuthProvider, AuthProviderProps };
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ var _chunkFXGWERIAjs = require("../chunk-FXGWERIA.js");
6
+ var _chunkBTCP7NB3js = require("../chunk-BTCP7NB3.js");
7
+ require("../chunk-UBCNCE73.js");
8
+ require("../chunk-UBVYEZI3.js");
9
+ require("../chunk-6NDWOV55.js");
10
+ require("../chunk-KLLABHIC.js");
11
+ require("../chunk-HDNHCVXT.js");
12
+ require("../chunk-OYWAYMFN.js");
13
+ require("../chunk-E2X33LSD.js");
14
+ require("../chunk-3ZPHNEJL.js");
15
+ require("../chunk-YGNNHTFE.js");
16
+ require("../chunk-C2FNSVJO.js");
17
+ require("../chunk-A7UBOIAL.js");
18
+ require("../chunk-NWRANDZ6.js");
19
+ require("../chunk-KMAXXKJT.js");
20
+ exports.AuthProvider = _chunkFXGWERIAjs.AuthProvider;
21
+ exports.KeycloakProvider = _chunkBTCP7NB3js.KeycloakProvider;
22
+ exports.defaultKeycloakInitOptions = _chunkBTCP7NB3js.defaultKeycloakInitOptions;
@@ -0,0 +1,25 @@
1
+ import {
2
+ AuthProvider
3
+ } from "../chunk-AOKVCTMY.mjs";
4
+ import {
5
+ KeycloakProvider,
6
+ defaultKeycloakInitOptions
7
+ } from "../chunk-DKRUDENY.mjs";
8
+ import "../chunk-SK4YK6KE.mjs";
9
+ import "../chunk-AYKQVWMR.mjs";
10
+ import "../chunk-2GUOEPFY.mjs";
11
+ import "../chunk-NXTVYIBR.mjs";
12
+ import "../chunk-VLUTEDDM.mjs";
13
+ import "../chunk-L5HMOY4M.mjs";
14
+ import "../chunk-NU2SJ3ST.mjs";
15
+ import "../chunk-Y4XMF3R6.mjs";
16
+ import "../chunk-UOKDJT5L.mjs";
17
+ import "../chunk-AD6VPMID.mjs";
18
+ import "../chunk-64PPU7Q3.mjs";
19
+ import "../chunk-7MTPH6XK.mjs";
20
+ import "../chunk-S237YNYQ.mjs";
21
+ export {
22
+ AuthProvider,
23
+ KeycloakProvider,
24
+ defaultKeycloakInitOptions
25
+ };
@@ -0,0 +1,45 @@
1
+ import React__default, { ReactNode, ComponentType } from 'react';
2
+ import { AuthClientEvent, AuthClientError, AuthClientTokens } from '@bitspur/react-keycloak-core';
3
+ import { KeycloakConfig, KeycloakInitOptions } from '@bitspur/keycloak-js';
4
+
5
+ /**
6
+ * File: /auth/provider/keycloakProvider.tsx
7
+ * Project: app
8
+ * File Created: 08-11-2022 03:12:43
9
+ * Author: Clay Risser
10
+ * -----
11
+ * Last Modified: 22-11-2022 18:07:46
12
+ * Modified By: Clay Risser
13
+ * -----
14
+ * Risser Labs LLC (c) Copyright 2021 - 2022
15
+ *
16
+ * Licensed under the Apache License, Version 2.0 (the "License");
17
+ * you may not use this file except in compliance with the License.
18
+ * You may obtain a copy of the License at
19
+ *
20
+ * http://www.apache.org/licenses/LICENSE-2.0
21
+ *
22
+ * Unless required by applicable law or agreed to in writing, software
23
+ * distributed under the License is distributed on an "AS IS" BASIS,
24
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
25
+ * See the License for the specific language governing permissions and
26
+ * limitations under the License.
27
+ */
28
+
29
+ interface KeycloakProviderProps {
30
+ children: ReactNode;
31
+ cookies?: unknown;
32
+ keycloakConfig: KeycloakConfig;
33
+ keycloakInitOptions?: KeycloakInitOptions;
34
+ loadingComponent?: ComponentType;
35
+ onEvent?: (eventType: AuthClientEvent, error?: AuthClientError) => void;
36
+ onTokens?: (tokens: AuthClientTokens) => void;
37
+ }
38
+ declare function KeycloakProvider({ children, cookies, keycloakConfig, keycloakInitOptions, loadingComponent, onEvent, onTokens, }: KeycloakProviderProps): React__default.JSX.Element;
39
+ declare const defaultKeycloakInitOptions: KeycloakInitOptions;
40
+ interface MessageSchema {
41
+ type: string;
42
+ payload?: string;
43
+ }
44
+
45
+ export { KeycloakProvider, KeycloakProviderProps, MessageSchema, defaultKeycloakInitOptions };