@multiplatform.one/keycloak 0.7.2 → 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 (80) hide show
  1. package/lib/@types/coreJsPure.d.d.mts +2 -0
  2. package/lib/@types/expoKeycloakAuth.d.d.mts +28 -0
  3. package/lib/Authenticated.d.mts +36 -0
  4. package/lib/Authenticated.js +6 -6
  5. package/lib/Authenticated.mjs +4 -4
  6. package/lib/authConfig.d.mts +37 -0
  7. package/lib/authConfig.js +1 -1
  8. package/lib/authConfig.mjs +1 -1
  9. package/lib/{chunk-JYEIPNPN.mjs → chunk-AOKVCTMY.mjs} +1 -1
  10. package/lib/{chunk-73FF4BX7.js → chunk-BJ2OPIMW.js} +4 -4
  11. package/lib/{chunk-QFP2JWHZ.js → chunk-BTCP7NB3.js} +3 -3
  12. package/lib/{chunk-DJW5IKQS.mjs → chunk-DKRUDENY.mjs} +1 -1
  13. package/lib/{chunk-S3M2DZ6G.js → chunk-E2X33LSD.js} +2 -2
  14. package/lib/{chunk-RTZ3CZKS.js → chunk-FXGWERIA.js} +2 -2
  15. package/lib/{chunk-NRD376XV.js → chunk-HDNHCVXT.js} +2 -2
  16. package/lib/{chunk-BTHRDOLL.mjs → chunk-NU2SJ3ST.mjs} +1 -1
  17. package/lib/{chunk-K2MQYDVB.mjs → chunk-SK4YK6KE.mjs} +1 -1
  18. package/lib/{chunk-JLIMB5OD.js → chunk-UBCNCE73.js} +2 -2
  19. package/lib/{chunk-6QZDLO3M.mjs → chunk-VLUTEDDM.mjs} +1 -1
  20. package/lib/{chunk-CLO6HIJN.mjs → chunk-ZVG3OFME.mjs} +2 -2
  21. package/lib/hooks/index.d.mts +9 -0
  22. package/lib/hooks/index.js +6 -6
  23. package/lib/hooks/index.mjs +3 -3
  24. package/lib/hooks/useAuthConfig.d.mts +29 -0
  25. package/lib/hooks/useAuthConfig.js +1 -1
  26. package/lib/hooks/useAuthConfig.mjs +1 -1
  27. package/lib/hooks/useCurrentRouteName/index.d.mts +26 -0
  28. package/lib/hooks/useCurrentRouteName/index.js +1 -1
  29. package/lib/hooks/useCurrentRouteName/index.mjs +1 -1
  30. package/lib/hooks/useCurrentRouteName/index.native.d.mts +26 -0
  31. package/lib/hooks/useCurrentRouteName/index.native.js +1 -1
  32. package/lib/hooks/useCurrentRouteName/index.native.mjs +1 -1
  33. package/lib/hooks/useKeycloak/index.d.mts +70 -0
  34. package/lib/hooks/useKeycloak/index.js +4 -4
  35. package/lib/hooks/useKeycloak/index.mjs +2 -2
  36. package/lib/hooks/useKeycloak/useKeycloak.d.mts +2 -0
  37. package/lib/hooks/useKeycloak/useKeycloak.js +4 -4
  38. package/lib/hooks/useKeycloak/useKeycloak.mjs +2 -2
  39. package/lib/hooks/useKeycloak/useKeycloak.native.d.mts +44 -0
  40. package/lib/hooks/useKeycloak/useKeycloak.native.js +8 -8
  41. package/lib/hooks/useKeycloak/useKeycloak.native.mjs +1 -1
  42. package/lib/hooks/useLogin.d.mts +26 -0
  43. package/lib/hooks/useLogin.js +4 -4
  44. package/lib/hooks/useLogin.mjs +3 -3
  45. package/lib/hooks/useTokensFromQuery/index.d.mts +26 -0
  46. package/lib/hooks/useTokensFromQuery/index.js +1 -1
  47. package/lib/hooks/useTokensFromQuery/index.mjs +1 -1
  48. package/lib/hooks/useTokensFromQuery/index.native.d.mts +26 -0
  49. package/lib/hooks/useTokensFromQuery/index.native.js +1 -1
  50. package/lib/hooks/useTokensFromQuery/index.native.mjs +1 -1
  51. package/lib/hooks/useTokensFromState.d.mts +26 -0
  52. package/lib/hooks/useTokensFromState.js +1 -1
  53. package/lib/hooks/useTokensFromState.mjs +1 -1
  54. package/lib/index.d.mts +13 -0
  55. package/lib/index.js +15 -15
  56. package/lib/index.mjs +7 -7
  57. package/lib/provider/afterAuth.d.mts +32 -0
  58. package/lib/provider/afterAuth.js +5 -5
  59. package/lib/provider/afterAuth.mjs +4 -4
  60. package/lib/provider/index.d.mts +42 -0
  61. package/lib/provider/index.js +9 -9
  62. package/lib/provider/index.mjs +6 -6
  63. package/lib/provider/keycloakProvider.d.mts +45 -0
  64. package/lib/provider/keycloakProvider.js +7 -7
  65. package/lib/provider/keycloakProvider.mjs +5 -5
  66. package/lib/provider/keycloakProvider.native.d.mts +32 -0
  67. package/lib/provider/keycloakProvider.native.js +5 -5
  68. package/lib/provider/keycloakProvider.native.mjs +4 -4
  69. package/lib/state/index.d.mts +34 -0
  70. package/lib/state/index.js +1 -1
  71. package/lib/state/index.mjs +1 -1
  72. package/lib/types.d.mts +40 -0
  73. package/lib/types.js +1 -1
  74. package/lib/types.mjs +1 -1
  75. package/lib/util.d.mts +27 -0
  76. package/lib/util.js +1 -1
  77. package/lib/util.mjs +1 -1
  78. package/package.json +27 -27
  79. /package/lib/{chunk-XXPGZHWZ.js → chunk-KMAXXKJT.js} +0 -0
  80. /package/lib/{chunk-NHABU752.mjs → chunk-S237YNYQ.mjs} +0 -0
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
5
  require("../../chunk-6NDWOV55.js");
6
- var _chunkS3M2DZ6Gjs = require("../../chunk-S3M2DZ6G.js");
6
+ var _chunkE2X33LSDjs = require("../../chunk-E2X33LSD.js");
7
7
  require("../../chunk-3ZPHNEJL.js");
8
8
  require("../../chunk-A7UBOIAL.js");
9
- require("../../chunk-XXPGZHWZ.js");
10
- exports.Keycloak = _chunkS3M2DZ6Gjs.Keycloak;
11
- exports.useKeycloak = _chunkS3M2DZ6Gjs.useKeycloak;
9
+ require("../../chunk-KMAXXKJT.js");
10
+ exports.Keycloak = _chunkE2X33LSDjs.Keycloak;
11
+ exports.useKeycloak = _chunkE2X33LSDjs.useKeycloak;
@@ -2,10 +2,10 @@ import "../../chunk-2GUOEPFY.mjs";
2
2
  import {
3
3
  Keycloak,
4
4
  useKeycloak
5
- } from "../../chunk-BTHRDOLL.mjs";
5
+ } from "../../chunk-NU2SJ3ST.mjs";
6
6
  import "../../chunk-Y4XMF3R6.mjs";
7
7
  import "../../chunk-64PPU7Q3.mjs";
8
- import "../../chunk-NHABU752.mjs";
8
+ import "../../chunk-S237YNYQ.mjs";
9
9
  export {
10
10
  Keycloak,
11
11
  useKeycloak
@@ -0,0 +1,2 @@
1
+ export { Keycloak, useKeycloak } from './index.mjs';
2
+ import '@bitspur/keycloak-js';
@@ -2,9 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
- var _chunkS3M2DZ6Gjs = require("../../chunk-S3M2DZ6G.js");
5
+ var _chunkE2X33LSDjs = require("../../chunk-E2X33LSD.js");
6
6
  require("../../chunk-3ZPHNEJL.js");
7
7
  require("../../chunk-A7UBOIAL.js");
8
- require("../../chunk-XXPGZHWZ.js");
9
- exports.Keycloak = _chunkS3M2DZ6Gjs.Keycloak;
10
- exports.useKeycloak = _chunkS3M2DZ6Gjs.useKeycloak;
8
+ require("../../chunk-KMAXXKJT.js");
9
+ exports.Keycloak = _chunkE2X33LSDjs.Keycloak;
10
+ exports.useKeycloak = _chunkE2X33LSDjs.useKeycloak;
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  Keycloak,
3
3
  useKeycloak
4
- } from "../../chunk-BTHRDOLL.mjs";
4
+ } from "../../chunk-NU2SJ3ST.mjs";
5
5
  import "../../chunk-Y4XMF3R6.mjs";
6
6
  import "../../chunk-64PPU7Q3.mjs";
7
- import "../../chunk-NHABU752.mjs";
7
+ import "../../chunk-S237YNYQ.mjs";
8
8
  export {
9
9
  Keycloak,
10
10
  useKeycloak
@@ -0,0 +1,44 @@
1
+ import { AuthRequestPromptOptions, AuthSessionResult } from 'expo-auth-session';
2
+ import { IKeycloak } from './index.mjs';
3
+ import { KeycloakTokenParsed, KeycloakRoles, KeycloakResourceAccess } from '@bitspur/keycloak-js';
4
+
5
+ /**
6
+ * File: /src/hooks/useKeycloak/useKeycloak.native.ts
7
+ * Project: app
8
+ * File Created: 08-11-2022 14:10:25
9
+ * Author: Clay Risser
10
+ * -----
11
+ * Last Modified: 01-06-2023 14:04: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
+ declare function useKeycloak(): IKeycloak;
30
+ declare class ExpoKeycloak implements IKeycloak {
31
+ logout: () => Promise<unknown>;
32
+ token?: string | undefined;
33
+ refreshToken?: string | undefined;
34
+ authenticated?: boolean;
35
+ tokenParsed?: KeycloakTokenParsed;
36
+ refreshTokenParsed?: KeycloakTokenParsed;
37
+ subject?: string;
38
+ realmAccess?: KeycloakRoles;
39
+ resourceAccess?: KeycloakResourceAccess;
40
+ login: () => Promise<unknown>;
41
+ constructor(ready: boolean, isLoggedIn: boolean | undefined, login: (options?: AuthRequestPromptOptions) => Promise<AuthSessionResult | undefined>, logout: () => Promise<unknown>, token?: string | undefined, refreshToken?: string | undefined);
42
+ }
43
+
44
+ export { ExpoKeycloak, useKeycloak };
@@ -12,7 +12,7 @@ function _interopRequireDefault(obj) {
12
12
  default: obj
13
13
  };
14
14
  }
15
- var _chunkXXPGZHWZjs = require("../../chunk-XXPGZHWZ.js");
15
+ var _chunkKMAXXKJTjs = require("../../chunk-KMAXXKJT.js");
16
16
  // src/hooks/useKeycloak/useKeycloak.native.ts
17
17
  var _atob = require("core-js-pure/stable/atob");
18
18
  var _atob2 = _interopRequireDefault(_atob);
@@ -33,13 +33,13 @@ var ExpoKeycloak = function ExpoKeycloak(ready, isLoggedIn, login, logout, token
33
33
  this.logout = logout;
34
34
  this.token = token;
35
35
  this.refreshToken = refreshToken;
36
- _chunkXXPGZHWZjs.__publicField.call(void 0, this, "authenticated");
37
- _chunkXXPGZHWZjs.__publicField.call(void 0, this, "tokenParsed");
38
- _chunkXXPGZHWZjs.__publicField.call(void 0, this, "refreshTokenParsed");
39
- _chunkXXPGZHWZjs.__publicField.call(void 0, this, "subject");
40
- _chunkXXPGZHWZjs.__publicField.call(void 0, this, "realmAccess");
41
- _chunkXXPGZHWZjs.__publicField.call(void 0, this, "resourceAccess");
42
- _chunkXXPGZHWZjs.__publicField.call(void 0, this, "login");
36
+ _chunkKMAXXKJTjs.__publicField.call(void 0, this, "authenticated");
37
+ _chunkKMAXXKJTjs.__publicField.call(void 0, this, "tokenParsed");
38
+ _chunkKMAXXKJTjs.__publicField.call(void 0, this, "refreshTokenParsed");
39
+ _chunkKMAXXKJTjs.__publicField.call(void 0, this, "subject");
40
+ _chunkKMAXXKJTjs.__publicField.call(void 0, this, "realmAccess");
41
+ _chunkKMAXXKJTjs.__publicField.call(void 0, this, "resourceAccess");
42
+ _chunkKMAXXKJTjs.__publicField.call(void 0, this, "login");
43
43
  if (ready) this.authenticated = isLoggedIn;
44
44
  if (this.authenticated) {
45
45
  if (this.token) this.tokenParsed = decodeToken(this.token);
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __publicField
3
- } from "../../chunk-NHABU752.mjs";
3
+ } from "../../chunk-S237YNYQ.mjs";
4
4
 
5
5
  // src/hooks/useKeycloak/useKeycloak.native.ts
6
6
  import atob from "core-js-pure/stable/atob";
@@ -0,0 +1,26 @@
1
+ /**
2
+ * File: /src/hooks/useLogin.ts
3
+ * Project: app
4
+ * File Created: 08-11-2022 08:49:14
5
+ * Author: Clay Risser
6
+ * -----
7
+ * Last Modified: 25-04-2023 23:09:10
8
+ * Modified By: Clay Risser
9
+ * -----
10
+ * Risser Labs LLC (c) Copyright 2021 - 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
+ declare function useLogin(loginRoute?: string): () => void;
25
+
26
+ export { useLogin };
@@ -2,10 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
- var _chunkNRD376XVjs = require("../chunk-NRD376XV.js");
5
+ var _chunkHDNHCVXTjs = require("../chunk-HDNHCVXT.js");
6
6
  require("../chunk-OYWAYMFN.js");
7
- require("../chunk-S3M2DZ6G.js");
7
+ require("../chunk-E2X33LSD.js");
8
8
  require("../chunk-3ZPHNEJL.js");
9
9
  require("../chunk-A7UBOIAL.js");
10
- require("../chunk-XXPGZHWZ.js");
11
- exports.useLogin = _chunkNRD376XVjs.useLogin;
10
+ require("../chunk-KMAXXKJT.js");
11
+ exports.useLogin = _chunkHDNHCVXTjs.useLogin;
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  useLogin
3
- } from "../chunk-6QZDLO3M.mjs";
3
+ } from "../chunk-VLUTEDDM.mjs";
4
4
  import "../chunk-L5HMOY4M.mjs";
5
- import "../chunk-BTHRDOLL.mjs";
5
+ import "../chunk-NU2SJ3ST.mjs";
6
6
  import "../chunk-Y4XMF3R6.mjs";
7
7
  import "../chunk-64PPU7Q3.mjs";
8
- import "../chunk-NHABU752.mjs";
8
+ import "../chunk-S237YNYQ.mjs";
9
9
  export {
10
10
  useLogin
11
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 };
@@ -3,5 +3,5 @@ Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
5
  var _chunkKLLABHICjs = require("../../chunk-KLLABHIC.js");
6
- require("../../chunk-XXPGZHWZ.js");
6
+ require("../../chunk-KMAXXKJT.js");
7
7
  exports.useTokensFromQuery = _chunkKLLABHICjs.useTokensFromQuery;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  useTokensFromQuery
3
3
  } from "../../chunk-NXTVYIBR.mjs";
4
- import "../../chunk-NHABU752.mjs";
4
+ import "../../chunk-S237YNYQ.mjs";
5
5
  export {
6
6
  useTokensFromQuery
7
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 };
@@ -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/hooks/useTokensFromQuery/index.native.ts
7
7
  var useTokensFromQuery = function() {
8
8
  return false;
@@ -1,4 +1,4 @@
1
- import "../../chunk-NHABU752.mjs";
1
+ import "../../chunk-S237YNYQ.mjs";
2
2
 
3
3
  // src/hooks/useTokensFromQuery/index.native.ts
4
4
  var useTokensFromQuery = () => false;
@@ -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 };
@@ -5,5 +5,5 @@ Object.defineProperty(exports, "__esModule", {
5
5
  var _chunkYGNNHTFEjs = require("../chunk-YGNNHTFE.js");
6
6
  require("../chunk-C2FNSVJO.js");
7
7
  require("../chunk-NWRANDZ6.js");
8
- require("../chunk-XXPGZHWZ.js");
8
+ require("../chunk-KMAXXKJT.js");
9
9
  exports.useTokensFromState = _chunkYGNNHTFEjs.useTokensFromState;
@@ -3,7 +3,7 @@ import {
3
3
  } from "../chunk-UOKDJT5L.mjs";
4
4
  import "../chunk-AD6VPMID.mjs";
5
5
  import "../chunk-7MTPH6XK.mjs";
6
- import "../chunk-NHABU752.mjs";
6
+ import "../chunk-S237YNYQ.mjs";
7
7
  export {
8
8
  useTokensFromState
9
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.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 CHANGED
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  AuthProvider
3
- } from "./chunk-JYEIPNPN.mjs";
3
+ } from "./chunk-AOKVCTMY.mjs";
4
4
  import {
5
5
  KeycloakProvider,
6
6
  defaultKeycloakInitOptions
7
- } from "./chunk-DJW5IKQS.mjs";
8
- import "./chunk-K2MQYDVB.mjs";
7
+ } from "./chunk-DKRUDENY.mjs";
8
+ import "./chunk-SK4YK6KE.mjs";
9
9
  import {
10
10
  Authenticated,
11
11
  withAuthenticated
12
- } from "./chunk-CLO6HIJN.mjs";
12
+ } from "./chunk-ZVG3OFME.mjs";
13
13
  import "./chunk-AYKQVWMR.mjs";
14
14
  import "./chunk-2GUOEPFY.mjs";
15
15
  import {
@@ -17,14 +17,14 @@ import {
17
17
  } from "./chunk-NXTVYIBR.mjs";
18
18
  import {
19
19
  useLogin
20
- } from "./chunk-6QZDLO3M.mjs";
20
+ } from "./chunk-VLUTEDDM.mjs";
21
21
  import {
22
22
  useCurrentRouteName
23
23
  } from "./chunk-L5HMOY4M.mjs";
24
24
  import {
25
25
  Keycloak,
26
26
  useKeycloak
27
- } from "./chunk-BTHRDOLL.mjs";
27
+ } from "./chunk-NU2SJ3ST.mjs";
28
28
  import {
29
29
  useAuthConfig
30
30
  } from "./chunk-Y4XMF3R6.mjs";
@@ -37,7 +37,7 @@ import {
37
37
  defaultAuthConfig
38
38
  } from "./chunk-64PPU7Q3.mjs";
39
39
  import "./chunk-7MTPH6XK.mjs";
40
- import "./chunk-NHABU752.mjs";
40
+ import "./chunk-S237YNYQ.mjs";
41
41
  export {
42
42
  AuthConfigContext,
43
43
  AuthProvider,
@@ -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 };
@@ -2,17 +2,17 @@
2
2
  Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
- var _chunkJLIMB5ODjs = require("../chunk-JLIMB5OD.js");
5
+ var _chunkUBCNCE73js = require("../chunk-UBCNCE73.js");
6
6
  require("../chunk-UBVYEZI3.js");
7
7
  require("../chunk-6NDWOV55.js");
8
8
  require("../chunk-KLLABHIC.js");
9
- require("../chunk-NRD376XV.js");
9
+ require("../chunk-HDNHCVXT.js");
10
10
  require("../chunk-OYWAYMFN.js");
11
- require("../chunk-S3M2DZ6G.js");
11
+ require("../chunk-E2X33LSD.js");
12
12
  require("../chunk-3ZPHNEJL.js");
13
13
  require("../chunk-YGNNHTFE.js");
14
14
  require("../chunk-C2FNSVJO.js");
15
15
  require("../chunk-A7UBOIAL.js");
16
16
  require("../chunk-NWRANDZ6.js");
17
- require("../chunk-XXPGZHWZ.js");
18
- exports.AfterAuth = _chunkJLIMB5ODjs.AfterAuth;
17
+ require("../chunk-KMAXXKJT.js");
18
+ exports.AfterAuth = _chunkUBCNCE73js.AfterAuth;
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  AfterAuth
3
- } from "../chunk-K2MQYDVB.mjs";
3
+ } from "../chunk-SK4YK6KE.mjs";
4
4
  import "../chunk-AYKQVWMR.mjs";
5
5
  import "../chunk-2GUOEPFY.mjs";
6
6
  import "../chunk-NXTVYIBR.mjs";
7
- import "../chunk-6QZDLO3M.mjs";
7
+ import "../chunk-VLUTEDDM.mjs";
8
8
  import "../chunk-L5HMOY4M.mjs";
9
- import "../chunk-BTHRDOLL.mjs";
9
+ import "../chunk-NU2SJ3ST.mjs";
10
10
  import "../chunk-Y4XMF3R6.mjs";
11
11
  import "../chunk-UOKDJT5L.mjs";
12
12
  import "../chunk-AD6VPMID.mjs";
13
13
  import "../chunk-64PPU7Q3.mjs";
14
14
  import "../chunk-7MTPH6XK.mjs";
15
- import "../chunk-NHABU752.mjs";
15
+ import "../chunk-S237YNYQ.mjs";
16
16
  export {
17
17
  AfterAuth
18
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 };
@@ -2,21 +2,21 @@
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");
5
+ var _chunkFXGWERIAjs = require("../chunk-FXGWERIA.js");
6
+ var _chunkBTCP7NB3js = require("../chunk-BTCP7NB3.js");
7
+ require("../chunk-UBCNCE73.js");
8
8
  require("../chunk-UBVYEZI3.js");
9
9
  require("../chunk-6NDWOV55.js");
10
10
  require("../chunk-KLLABHIC.js");
11
- require("../chunk-NRD376XV.js");
11
+ require("../chunk-HDNHCVXT.js");
12
12
  require("../chunk-OYWAYMFN.js");
13
- require("../chunk-S3M2DZ6G.js");
13
+ require("../chunk-E2X33LSD.js");
14
14
  require("../chunk-3ZPHNEJL.js");
15
15
  require("../chunk-YGNNHTFE.js");
16
16
  require("../chunk-C2FNSVJO.js");
17
17
  require("../chunk-A7UBOIAL.js");
18
18
  require("../chunk-NWRANDZ6.js");
19
- require("../chunk-XXPGZHWZ.js");
20
- exports.AuthProvider = _chunkRTZ3CZKSjs.AuthProvider;
21
- exports.KeycloakProvider = _chunkQFP2JWHZjs.KeycloakProvider;
22
- exports.defaultKeycloakInitOptions = _chunkQFP2JWHZjs.defaultKeycloakInitOptions;
19
+ require("../chunk-KMAXXKJT.js");
20
+ exports.AuthProvider = _chunkFXGWERIAjs.AuthProvider;
21
+ exports.KeycloakProvider = _chunkBTCP7NB3js.KeycloakProvider;
22
+ exports.defaultKeycloakInitOptions = _chunkBTCP7NB3js.defaultKeycloakInitOptions;
@@ -1,23 +1,23 @@
1
1
  import {
2
2
  AuthProvider
3
- } from "../chunk-JYEIPNPN.mjs";
3
+ } from "../chunk-AOKVCTMY.mjs";
4
4
  import {
5
5
  KeycloakProvider,
6
6
  defaultKeycloakInitOptions
7
- } from "../chunk-DJW5IKQS.mjs";
8
- import "../chunk-K2MQYDVB.mjs";
7
+ } from "../chunk-DKRUDENY.mjs";
8
+ import "../chunk-SK4YK6KE.mjs";
9
9
  import "../chunk-AYKQVWMR.mjs";
10
10
  import "../chunk-2GUOEPFY.mjs";
11
11
  import "../chunk-NXTVYIBR.mjs";
12
- import "../chunk-6QZDLO3M.mjs";
12
+ import "../chunk-VLUTEDDM.mjs";
13
13
  import "../chunk-L5HMOY4M.mjs";
14
- import "../chunk-BTHRDOLL.mjs";
14
+ import "../chunk-NU2SJ3ST.mjs";
15
15
  import "../chunk-Y4XMF3R6.mjs";
16
16
  import "../chunk-UOKDJT5L.mjs";
17
17
  import "../chunk-AD6VPMID.mjs";
18
18
  import "../chunk-64PPU7Q3.mjs";
19
19
  import "../chunk-7MTPH6XK.mjs";
20
- import "../chunk-NHABU752.mjs";
20
+ import "../chunk-S237YNYQ.mjs";
21
21
  export {
22
22
  AuthProvider,
23
23
  KeycloakProvider,