@multiplatform.one/keycloak 1.0.2 → 1.0.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 (169) hide show
  1. package/package.json +32 -34
  2. package/routes/index.d.ts +1 -1
  3. package/routes/index.js +1 -1
  4. package/src/Authenticated.tsx +12 -13
  5. package/src/apollo.ts +1 -1
  6. package/src/authConfig.ts +2 -0
  7. package/src/hooks/useTokensFromQuery/index.ts +2 -0
  8. package/src/hooks/useTokensFromState.ts +2 -2
  9. package/{lib/@types/expoKeycloakAuth.d.d.mts → src/keycloak/config.ts} +17 -6
  10. package/src/keycloak/context.ts +3 -1
  11. package/src/keycloak/index.ts +1 -0
  12. package/src/keycloak/keycloak.native.ts +49 -15
  13. package/src/keycloak/keycloak.ts +66 -11
  14. package/src/provider/AfterAuth.tsx +2 -0
  15. package/src/provider/AuthProvider/AuthProvider.native.tsx +167 -6
  16. package/src/provider/AuthProvider/AuthProvider.tsx +66 -43
  17. package/src/provider/KeycloakProvider.tsx +12 -2
  18. package/src/routes.ts +19 -0
  19. package/src/session/session.ts +4 -15
  20. package/src/token.ts +13 -5
  21. package/lib/@types/expoKeycloakAuth.d.d.ts +0 -25
  22. package/lib/@types/expoKeycloakAuth.d.js +0 -1
  23. package/lib/@types/expoKeycloakAuth.d.mjs +0 -0
  24. package/lib/Authenticated.d.mts +0 -32
  25. package/lib/Authenticated.d.ts +0 -32
  26. package/lib/Authenticated.js +0 -20
  27. package/lib/Authenticated.mjs +0 -20
  28. package/lib/apollo.d.mts +0 -7
  29. package/lib/apollo.d.ts +0 -7
  30. package/lib/apollo.js +0 -15
  31. package/lib/apollo.mjs +0 -15
  32. package/lib/authConfig.d.mts +0 -12
  33. package/lib/authConfig.d.ts +0 -12
  34. package/lib/authConfig.js +0 -9
  35. package/lib/authConfig.mjs +0 -9
  36. package/lib/chunk-2L5TXBDK.mjs +0 -7
  37. package/lib/chunk-2MYOFYAK.mjs +0 -53
  38. package/lib/chunk-2VDDEPLF.js +0 -27
  39. package/lib/chunk-2VGMJ7WP.js +0 -34
  40. package/lib/chunk-32AVT4GA.js +0 -9
  41. package/lib/chunk-3ZTSLDX7.js +0 -13
  42. package/lib/chunk-6APOOEW6.js +0 -28
  43. package/lib/chunk-6F4PWJZI.js +0 -1
  44. package/lib/chunk-6FRYV4MK.mjs +0 -27
  45. package/lib/chunk-6WBHOY7M.js +0 -50
  46. package/lib/chunk-74FSREBY.js +0 -161
  47. package/lib/chunk-A2V2S4HP.js +0 -22
  48. package/lib/chunk-BUZONXAW.js +0 -1
  49. package/lib/chunk-C6TOWKPW.mjs +0 -245
  50. package/lib/chunk-DNEUOHZQ.mjs +0 -28
  51. package/lib/chunk-EGCPD3BX.js +0 -51
  52. package/lib/chunk-HH32BME2.mjs +0 -0
  53. package/lib/chunk-HTWZLBA4.mjs +0 -13
  54. package/lib/chunk-I5FNGKQ6.js +0 -16
  55. package/lib/chunk-IGSEESI3.mjs +0 -51
  56. package/lib/chunk-JAFUI2JQ.mjs +0 -9
  57. package/lib/chunk-JPQI72HR.mjs +0 -0
  58. package/lib/chunk-KWNIT4G4.mjs +0 -34
  59. package/lib/chunk-L3HTVJ4B.mjs +0 -13
  60. package/lib/chunk-MDAAMGTE.js +0 -1
  61. package/lib/chunk-NQMFZ6RW.mjs +0 -50
  62. package/lib/chunk-OAUYHIWG.mjs +0 -0
  63. package/lib/chunk-OBB23GPX.mjs +0 -0
  64. package/lib/chunk-OYWXU5N7.mjs +0 -161
  65. package/lib/chunk-P57PW2II.js +0 -11
  66. package/lib/chunk-TUJRPTZE.js +0 -13
  67. package/lib/chunk-UESWAK47.mjs +0 -0
  68. package/lib/chunk-UKSHA3X3.mjs +0 -16
  69. package/lib/chunk-VS4M7GMO.js +0 -1
  70. package/lib/chunk-W4LGQZMF.js +0 -245
  71. package/lib/chunk-WBQAMGXK.mjs +0 -0
  72. package/lib/chunk-WMH347OL.mjs +0 -22
  73. package/lib/chunk-WS4IMGVL.js +0 -1
  74. package/lib/chunk-YACGLW5Q.js +0 -7
  75. package/lib/chunk-YYYDFAI4.js +0 -53
  76. package/lib/chunk-ZCBD6HWK.js +0 -1
  77. package/lib/chunk-ZFXKCRJC.mjs +0 -11
  78. package/lib/hooks/index.d.mts +0 -5
  79. package/lib/hooks/index.d.ts +0 -5
  80. package/lib/hooks/index.js +0 -19
  81. package/lib/hooks/index.mjs +0 -19
  82. package/lib/hooks/useAuthConfig.d.mts +0 -6
  83. package/lib/hooks/useAuthConfig.d.ts +0 -6
  84. package/lib/hooks/useAuthConfig.js +0 -8
  85. package/lib/hooks/useAuthConfig.mjs +0 -8
  86. package/lib/hooks/useTokensFromQuery/index.d.mts +0 -3
  87. package/lib/hooks/useTokensFromQuery/index.d.ts +0 -3
  88. package/lib/hooks/useTokensFromQuery/index.js +0 -7
  89. package/lib/hooks/useTokensFromQuery/index.mjs +0 -7
  90. package/lib/hooks/useTokensFromQuery/index.native.d.mts +0 -3
  91. package/lib/hooks/useTokensFromQuery/index.native.d.ts +0 -3
  92. package/lib/hooks/useTokensFromQuery/index.native.js +0 -7
  93. package/lib/hooks/useTokensFromQuery/index.native.mjs +0 -7
  94. package/lib/hooks/useTokensFromState.d.mts +0 -3
  95. package/lib/hooks/useTokensFromState.d.ts +0 -3
  96. package/lib/hooks/useTokensFromState.js +0 -9
  97. package/lib/hooks/useTokensFromState.mjs +0 -9
  98. package/lib/index.d.mts +0 -18
  99. package/lib/index.d.ts +0 -18
  100. package/lib/index.js +0 -70
  101. package/lib/index.mjs +0 -70
  102. package/lib/keycloak/context.d.mts +0 -12
  103. package/lib/keycloak/context.d.ts +0 -12
  104. package/lib/keycloak/context.js +0 -7
  105. package/lib/keycloak/context.mjs +0 -7
  106. package/lib/keycloak/index.d.mts +0 -7
  107. package/lib/keycloak/index.d.ts +0 -7
  108. package/lib/keycloak/index.js +0 -14
  109. package/lib/keycloak/index.mjs +0 -14
  110. package/lib/keycloak/keycloak.d.mts +0 -37
  111. package/lib/keycloak/keycloak.d.ts +0 -37
  112. package/lib/keycloak/keycloak.js +0 -13
  113. package/lib/keycloak/keycloak.mjs +0 -13
  114. package/lib/keycloak/keycloak.native.d.mts +0 -33
  115. package/lib/keycloak/keycloak.native.d.ts +0 -33
  116. package/lib/keycloak/keycloak.native.js +0 -134
  117. package/lib/keycloak/keycloak.native.mjs +0 -134
  118. package/lib/provider/AfterAuth.d.mts +0 -28
  119. package/lib/provider/AfterAuth.d.ts +0 -28
  120. package/lib/provider/AfterAuth.js +0 -18
  121. package/lib/provider/AfterAuth.mjs +0 -18
  122. package/lib/provider/AuthProvider/AuthProvider.d.mts +0 -37
  123. package/lib/provider/AuthProvider/AuthProvider.d.ts +0 -37
  124. package/lib/provider/AuthProvider/AuthProvider.js +0 -19
  125. package/lib/provider/AuthProvider/AuthProvider.mjs +0 -19
  126. package/lib/provider/AuthProvider/AuthProvider.native.d.mts +0 -29
  127. package/lib/provider/AuthProvider/AuthProvider.native.d.ts +0 -29
  128. package/lib/provider/AuthProvider/AuthProvider.native.js +0 -25
  129. package/lib/provider/AuthProvider/AuthProvider.native.mjs +0 -25
  130. package/lib/provider/AuthProvider/index.d.mts +0 -4
  131. package/lib/provider/AuthProvider/index.d.ts +0 -4
  132. package/lib/provider/AuthProvider/index.js +0 -20
  133. package/lib/provider/AuthProvider/index.mjs +0 -20
  134. package/lib/provider/KeycloakProvider.d.mts +0 -34
  135. package/lib/provider/KeycloakProvider.d.ts +0 -34
  136. package/lib/provider/KeycloakProvider.js +0 -21
  137. package/lib/provider/KeycloakProvider.mjs +0 -21
  138. package/lib/provider/index.d.mts +0 -8
  139. package/lib/provider/index.d.ts +0 -8
  140. package/lib/provider/index.js +0 -28
  141. package/lib/provider/index.mjs +0 -28
  142. package/lib/routes.d.mts +0 -34
  143. package/lib/routes.d.ts +0 -34
  144. package/lib/routes.js +0 -131
  145. package/lib/routes.mjs +0 -131
  146. package/lib/session/index.d.mts +0 -3
  147. package/lib/session/index.d.ts +0 -3
  148. package/lib/session/index.js +0 -10
  149. package/lib/session/index.mjs +0 -10
  150. package/lib/session/session.d.mts +0 -18
  151. package/lib/session/session.d.ts +0 -18
  152. package/lib/session/session.js +0 -9
  153. package/lib/session/session.mjs +0 -9
  154. package/lib/session/session.native.d.mts +0 -8
  155. package/lib/session/session.native.d.ts +0 -8
  156. package/lib/session/session.native.js +0 -13
  157. package/lib/session/session.native.mjs +0 -13
  158. package/lib/state.d.mts +0 -12
  159. package/lib/state.d.ts +0 -12
  160. package/lib/state.js +0 -9
  161. package/lib/state.mjs +0 -9
  162. package/lib/token.d.mts +0 -17
  163. package/lib/token.d.ts +0 -17
  164. package/lib/token.js +0 -9
  165. package/lib/token.mjs +0 -9
  166. package/lib/types.d.mts +0 -20
  167. package/lib/types.d.ts +0 -20
  168. package/lib/types.js +0 -1
  169. package/lib/types.mjs +0 -1
@@ -1,28 +0,0 @@
1
- import React__default, { PropsWithChildren } from 'react';
2
-
3
- /**
4
- * File: /src/provider/AfterAuth.tsx
5
- * Project: @multiplatform.one/keycloak
6
- * File Created: 10-01-2024 12:41:33
7
- * Author: Clay Risser
8
- * -----
9
- * BitSpur (c) Copyright 2021 - 2024
10
- *
11
- * Licensed under the Apache License, Version 2.0 (the "License");
12
- * you may not use this file except in compliance with the License.
13
- * You may obtain a copy of the License at
14
- *
15
- * http://www.apache.org/licenses/LICENSE-2.0
16
- *
17
- * Unless required by applicable law or agreed to in writing, software
18
- * distributed under the License is distributed on an "AS IS" BASIS,
19
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20
- * See the License for the specific language governing permissions and
21
- * limitations under the License.
22
- */
23
-
24
- interface AfterAuthProps extends PropsWithChildren {
25
- }
26
- declare function AfterAuth({ children }: AfterAuthProps): React__default.JSX.Element;
27
-
28
- export { AfterAuth, type AfterAuthProps };
@@ -1,28 +0,0 @@
1
- import React__default, { PropsWithChildren } from 'react';
2
-
3
- /**
4
- * File: /src/provider/AfterAuth.tsx
5
- * Project: @multiplatform.one/keycloak
6
- * File Created: 10-01-2024 12:41:33
7
- * Author: Clay Risser
8
- * -----
9
- * BitSpur (c) Copyright 2021 - 2024
10
- *
11
- * Licensed under the Apache License, Version 2.0 (the "License");
12
- * you may not use this file except in compliance with the License.
13
- * You may obtain a copy of the License at
14
- *
15
- * http://www.apache.org/licenses/LICENSE-2.0
16
- *
17
- * Unless required by applicable law or agreed to in writing, software
18
- * distributed under the License is distributed on an "AS IS" BASIS,
19
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20
- * See the License for the specific language governing permissions and
21
- * limitations under the License.
22
- */
23
-
24
- interface AfterAuthProps extends PropsWithChildren {
25
- }
26
- declare function AfterAuth({ children }: AfterAuthProps): React__default.JSX.Element;
27
-
28
- export { AfterAuth, type AfterAuthProps };
@@ -1,18 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
- var _chunkEGCPD3BXjs = require('../chunk-EGCPD3BX.js');
4
- require('../chunk-ZCBD6HWK.js');
5
- require('../chunk-TUJRPTZE.js');
6
- require('../chunk-3ZTSLDX7.js');
7
- require('../chunk-I5FNGKQ6.js');
8
- require('../chunk-VS4M7GMO.js');
9
- require('../chunk-74FSREBY.js');
10
- require('../chunk-YACGLW5Q.js');
11
- require('../chunk-2VGMJ7WP.js');
12
- require('../chunk-32AVT4GA.js');
13
- require('../chunk-A2V2S4HP.js');
14
- require('../chunk-2VDDEPLF.js');
15
- require('../chunk-P57PW2II.js');
16
-
17
-
18
- exports.AfterAuth = _chunkEGCPD3BXjs.AfterAuth;
@@ -1,18 +0,0 @@
1
- import {
2
- AfterAuth
3
- } from "../chunk-IGSEESI3.mjs";
4
- import "../chunk-HH32BME2.mjs";
5
- import "../chunk-L3HTVJ4B.mjs";
6
- import "../chunk-HTWZLBA4.mjs";
7
- import "../chunk-UKSHA3X3.mjs";
8
- import "../chunk-OBB23GPX.mjs";
9
- import "../chunk-OYWXU5N7.mjs";
10
- import "../chunk-2L5TXBDK.mjs";
11
- import "../chunk-KWNIT4G4.mjs";
12
- import "../chunk-JAFUI2JQ.mjs";
13
- import "../chunk-WMH347OL.mjs";
14
- import "../chunk-6FRYV4MK.mjs";
15
- import "../chunk-ZFXKCRJC.mjs";
16
- export {
17
- AfterAuth
18
- };
@@ -1,37 +0,0 @@
1
- import React__default, { PropsWithChildren } from 'react';
2
- import { KeycloakConfig, KeycloakInitOptions } from 'keycloak-js';
3
- import { SessionProviderProps } from 'next-auth/react';
4
-
5
- /**
6
- * File: /src/provider/AuthProvider/AuthProvider.tsx
7
- * Project: @multiplatform.one/keycloak
8
- * File Created: 09-01-2024 11:29:20
9
- * Author: Clay Risser
10
- * -----
11
- * BitSpur (c) Copyright 2021 - 2024
12
- *
13
- * Licensed under the Apache License, Version 2.0 (the "License");
14
- * you may not use this file except in compliance with the License.
15
- * You may obtain a copy of the License at
16
- *
17
- * http://www.apache.org/licenses/LICENSE-2.0
18
- *
19
- * Unless required by applicable law or agreed to in writing, software
20
- * distributed under the License is distributed on an "AS IS" BASIS,
21
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22
- * See the License for the specific language governing permissions and
23
- * limitations under the License.
24
- */
25
-
26
- interface AuthProviderProps extends PropsWithChildren {
27
- keycloakConfig?: KeycloakConfig;
28
- keycloakInitOptions?: KeycloakInitOptions;
29
- sessionProvider?: Omit<SessionProviderProps, 'children'>;
30
- }
31
- declare function AuthProvider({ children, sessionProvider, keycloakInitOptions, keycloakConfig }: AuthProviderProps): React__default.JSX.Element;
32
- interface MessageSchema {
33
- type: string;
34
- payload?: string;
35
- }
36
-
37
- export { AuthProvider, type AuthProviderProps, type MessageSchema };
@@ -1,37 +0,0 @@
1
- import React__default, { PropsWithChildren } from 'react';
2
- import { KeycloakConfig, KeycloakInitOptions } from 'keycloak-js';
3
- import { SessionProviderProps } from 'next-auth/react';
4
-
5
- /**
6
- * File: /src/provider/AuthProvider/AuthProvider.tsx
7
- * Project: @multiplatform.one/keycloak
8
- * File Created: 09-01-2024 11:29:20
9
- * Author: Clay Risser
10
- * -----
11
- * BitSpur (c) Copyright 2021 - 2024
12
- *
13
- * Licensed under the Apache License, Version 2.0 (the "License");
14
- * you may not use this file except in compliance with the License.
15
- * You may obtain a copy of the License at
16
- *
17
- * http://www.apache.org/licenses/LICENSE-2.0
18
- *
19
- * Unless required by applicable law or agreed to in writing, software
20
- * distributed under the License is distributed on an "AS IS" BASIS,
21
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22
- * See the License for the specific language governing permissions and
23
- * limitations under the License.
24
- */
25
-
26
- interface AuthProviderProps extends PropsWithChildren {
27
- keycloakConfig?: KeycloakConfig;
28
- keycloakInitOptions?: KeycloakInitOptions;
29
- sessionProvider?: Omit<SessionProviderProps, 'children'>;
30
- }
31
- declare function AuthProvider({ children, sessionProvider, keycloakInitOptions, keycloakConfig }: AuthProviderProps): React__default.JSX.Element;
32
- interface MessageSchema {
33
- type: string;
34
- payload?: string;
35
- }
36
-
37
- export { AuthProvider, type AuthProviderProps, type MessageSchema };
@@ -1,19 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
- var _chunkW4LGQZMFjs = require('../../chunk-W4LGQZMF.js');
4
- require('../../chunk-EGCPD3BX.js');
5
- require('../../chunk-ZCBD6HWK.js');
6
- require('../../chunk-TUJRPTZE.js');
7
- require('../../chunk-3ZTSLDX7.js');
8
- require('../../chunk-I5FNGKQ6.js');
9
- require('../../chunk-VS4M7GMO.js');
10
- require('../../chunk-74FSREBY.js');
11
- require('../../chunk-YACGLW5Q.js');
12
- require('../../chunk-2VGMJ7WP.js');
13
- require('../../chunk-32AVT4GA.js');
14
- require('../../chunk-A2V2S4HP.js');
15
- require('../../chunk-2VDDEPLF.js');
16
- require('../../chunk-P57PW2II.js');
17
-
18
-
19
- exports.AuthProvider = _chunkW4LGQZMFjs.AuthProvider;
@@ -1,19 +0,0 @@
1
- import {
2
- AuthProvider
3
- } from "../../chunk-C6TOWKPW.mjs";
4
- import "../../chunk-IGSEESI3.mjs";
5
- import "../../chunk-HH32BME2.mjs";
6
- import "../../chunk-L3HTVJ4B.mjs";
7
- import "../../chunk-HTWZLBA4.mjs";
8
- import "../../chunk-UKSHA3X3.mjs";
9
- import "../../chunk-OBB23GPX.mjs";
10
- import "../../chunk-OYWXU5N7.mjs";
11
- import "../../chunk-2L5TXBDK.mjs";
12
- import "../../chunk-KWNIT4G4.mjs";
13
- import "../../chunk-JAFUI2JQ.mjs";
14
- import "../../chunk-WMH347OL.mjs";
15
- import "../../chunk-6FRYV4MK.mjs";
16
- import "../../chunk-ZFXKCRJC.mjs";
17
- export {
18
- AuthProvider
19
- };
@@ -1,29 +0,0 @@
1
- import React__default from 'react';
2
- import { AuthProviderProps } from './AuthProvider.mjs';
3
- import 'keycloak-js';
4
- import 'next-auth/react';
5
-
6
- /**
7
- * File: /src/provider/AuthProvider/AuthProvider.native.tsx
8
- * Project: @multiplatform.one/keycloak
9
- * File Created: 09-01-2024 11:29:20
10
- * Author: Clay Risser
11
- * -----
12
- * BitSpur (c) Copyright 2021 - 2024
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
- declare function AuthProvider({ children, keycloakConfig }: AuthProviderProps): React__default.JSX.Element;
28
-
29
- export { AuthProvider };
@@ -1,29 +0,0 @@
1
- import React__default from 'react';
2
- import { AuthProviderProps } from './AuthProvider.js';
3
- import 'keycloak-js';
4
- import 'next-auth/react';
5
-
6
- /**
7
- * File: /src/provider/AuthProvider/AuthProvider.native.tsx
8
- * Project: @multiplatform.one/keycloak
9
- * File Created: 09-01-2024 11:29:20
10
- * Author: Clay Risser
11
- * -----
12
- * BitSpur (c) Copyright 2021 - 2024
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
- declare function AuthProvider({ children, keycloakConfig }: AuthProviderProps): React__default.JSX.Element;
28
-
29
- export { AuthProvider };
@@ -1,25 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2
-
3
- var _chunkEGCPD3BXjs = require('../../chunk-EGCPD3BX.js');
4
- require('../../chunk-ZCBD6HWK.js');
5
- require('../../chunk-TUJRPTZE.js');
6
- require('../../chunk-3ZTSLDX7.js');
7
- require('../../chunk-I5FNGKQ6.js');
8
- require('../../chunk-VS4M7GMO.js');
9
- require('../../chunk-74FSREBY.js');
10
- require('../../chunk-YACGLW5Q.js');
11
- require('../../chunk-2VGMJ7WP.js');
12
- require('../../chunk-32AVT4GA.js');
13
- require('../../chunk-A2V2S4HP.js');
14
- require('../../chunk-2VDDEPLF.js');
15
- require('../../chunk-P57PW2II.js');
16
-
17
- // src/provider/AuthProvider/AuthProvider.native.tsx
18
- var _react = require('react'); var _react2 = _interopRequireDefault(_react);
19
- var _expokeycloakauth = require('expo-keycloak-auth');
20
- function AuthProvider({ children, keycloakConfig }) {
21
- return /* @__PURE__ */ _react2.default.createElement(_expokeycloakauth.KeycloakProvider, { ...keycloakConfig }, /* @__PURE__ */ _react2.default.createElement(_chunkEGCPD3BXjs.AfterAuth, null, children));
22
- }
23
-
24
-
25
- exports.AuthProvider = AuthProvider;
@@ -1,25 +0,0 @@
1
- import {
2
- AfterAuth
3
- } from "../../chunk-IGSEESI3.mjs";
4
- import "../../chunk-HH32BME2.mjs";
5
- import "../../chunk-L3HTVJ4B.mjs";
6
- import "../../chunk-HTWZLBA4.mjs";
7
- import "../../chunk-UKSHA3X3.mjs";
8
- import "../../chunk-OBB23GPX.mjs";
9
- import "../../chunk-OYWXU5N7.mjs";
10
- import "../../chunk-2L5TXBDK.mjs";
11
- import "../../chunk-KWNIT4G4.mjs";
12
- import "../../chunk-JAFUI2JQ.mjs";
13
- import "../../chunk-WMH347OL.mjs";
14
- import "../../chunk-6FRYV4MK.mjs";
15
- import "../../chunk-ZFXKCRJC.mjs";
16
-
17
- // src/provider/AuthProvider/AuthProvider.native.tsx
18
- import React from "react";
19
- import { KeycloakProvider as ExpoKeycloakProvider } from "expo-keycloak-auth";
20
- function AuthProvider({ children, keycloakConfig }) {
21
- return /* @__PURE__ */ React.createElement(ExpoKeycloakProvider, { ...keycloakConfig }, /* @__PURE__ */ React.createElement(AfterAuth, null, children));
22
- }
23
- export {
24
- AuthProvider
25
- };
@@ -1,4 +0,0 @@
1
- export { AuthProvider, AuthProviderProps, MessageSchema } from './AuthProvider.mjs';
2
- import 'react';
3
- import 'keycloak-js';
4
- import 'next-auth/react';
@@ -1,4 +0,0 @@
1
- export { AuthProvider, AuthProviderProps, MessageSchema } from './AuthProvider.js';
2
- import 'react';
3
- import 'keycloak-js';
4
- import 'next-auth/react';
@@ -1,20 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-MDAAMGTE.js');
2
-
3
-
4
- var _chunkW4LGQZMFjs = require('../../chunk-W4LGQZMF.js');
5
- require('../../chunk-EGCPD3BX.js');
6
- require('../../chunk-ZCBD6HWK.js');
7
- require('../../chunk-TUJRPTZE.js');
8
- require('../../chunk-3ZTSLDX7.js');
9
- require('../../chunk-I5FNGKQ6.js');
10
- require('../../chunk-VS4M7GMO.js');
11
- require('../../chunk-74FSREBY.js');
12
- require('../../chunk-YACGLW5Q.js');
13
- require('../../chunk-2VGMJ7WP.js');
14
- require('../../chunk-32AVT4GA.js');
15
- require('../../chunk-A2V2S4HP.js');
16
- require('../../chunk-2VDDEPLF.js');
17
- require('../../chunk-P57PW2II.js');
18
-
19
-
20
- exports.AuthProvider = _chunkW4LGQZMFjs.AuthProvider;
@@ -1,20 +0,0 @@
1
- import "../../chunk-JPQI72HR.mjs";
2
- import {
3
- AuthProvider
4
- } from "../../chunk-C6TOWKPW.mjs";
5
- import "../../chunk-IGSEESI3.mjs";
6
- import "../../chunk-HH32BME2.mjs";
7
- import "../../chunk-L3HTVJ4B.mjs";
8
- import "../../chunk-HTWZLBA4.mjs";
9
- import "../../chunk-UKSHA3X3.mjs";
10
- import "../../chunk-OBB23GPX.mjs";
11
- import "../../chunk-OYWXU5N7.mjs";
12
- import "../../chunk-2L5TXBDK.mjs";
13
- import "../../chunk-KWNIT4G4.mjs";
14
- import "../../chunk-JAFUI2JQ.mjs";
15
- import "../../chunk-WMH347OL.mjs";
16
- import "../../chunk-6FRYV4MK.mjs";
17
- import "../../chunk-ZFXKCRJC.mjs";
18
- export {
19
- AuthProvider
20
- };
@@ -1,34 +0,0 @@
1
- import React__default, { PropsWithChildren } from 'react';
2
- import { AuthConfig } from '../authConfig.mjs';
3
- import { Session } from 'next-auth';
4
-
5
- /**
6
- * File: /src/provider/KeycloakProvider.tsx
7
- * Project: @multiplatform.one/keycloak
8
- * File Created: 10-01-2024 13:56:05
9
- * Author: Clay Risser
10
- * -----
11
- * BitSpur (c) Copyright 2021 - 2024
12
- *
13
- * Licensed under the Apache License, Version 2.0 (the "License");
14
- * you may not use this file except in compliance with the License.
15
- * You may obtain a copy of the License at
16
- *
17
- * http://www.apache.org/licenses/LICENSE-2.0
18
- *
19
- * Unless required by applicable law or agreed to in writing, software
20
- * distributed under the License is distributed on an "AS IS" BASIS,
21
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22
- * See the License for the specific language governing permissions and
23
- * limitations under the License.
24
- */
25
-
26
- interface KeycloakProviderProps extends PropsWithChildren, AuthConfig {
27
- baseUrl?: string;
28
- clientId?: string;
29
- realm?: string;
30
- session?: Session;
31
- }
32
- declare function KeycloakProvider({ children, debug, realm, clientId, baseUrl, session }: KeycloakProviderProps): React__default.JSX.Element;
33
-
34
- export { KeycloakProvider, type KeycloakProviderProps };
@@ -1,34 +0,0 @@
1
- import React__default, { PropsWithChildren } from 'react';
2
- import { AuthConfig } from '../authConfig.js';
3
- import { Session } from 'next-auth';
4
-
5
- /**
6
- * File: /src/provider/KeycloakProvider.tsx
7
- * Project: @multiplatform.one/keycloak
8
- * File Created: 10-01-2024 13:56:05
9
- * Author: Clay Risser
10
- * -----
11
- * BitSpur (c) Copyright 2021 - 2024
12
- *
13
- * Licensed under the Apache License, Version 2.0 (the "License");
14
- * you may not use this file except in compliance with the License.
15
- * You may obtain a copy of the License at
16
- *
17
- * http://www.apache.org/licenses/LICENSE-2.0
18
- *
19
- * Unless required by applicable law or agreed to in writing, software
20
- * distributed under the License is distributed on an "AS IS" BASIS,
21
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22
- * See the License for the specific language governing permissions and
23
- * limitations under the License.
24
- */
25
-
26
- interface KeycloakProviderProps extends PropsWithChildren, AuthConfig {
27
- baseUrl?: string;
28
- clientId?: string;
29
- realm?: string;
30
- session?: Session;
31
- }
32
- declare function KeycloakProvider({ children, debug, realm, clientId, baseUrl, session }: KeycloakProviderProps): React__default.JSX.Element;
33
-
34
- export { KeycloakProvider, type KeycloakProviderProps };
@@ -1,21 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
- var _chunk6APOOEW6js = require('../chunk-6APOOEW6.js');
4
- require('../chunk-MDAAMGTE.js');
5
- require('../chunk-W4LGQZMF.js');
6
- require('../chunk-EGCPD3BX.js');
7
- require('../chunk-ZCBD6HWK.js');
8
- require('../chunk-TUJRPTZE.js');
9
- require('../chunk-3ZTSLDX7.js');
10
- require('../chunk-I5FNGKQ6.js');
11
- require('../chunk-VS4M7GMO.js');
12
- require('../chunk-74FSREBY.js');
13
- require('../chunk-YACGLW5Q.js');
14
- require('../chunk-2VGMJ7WP.js');
15
- require('../chunk-32AVT4GA.js');
16
- require('../chunk-A2V2S4HP.js');
17
- require('../chunk-2VDDEPLF.js');
18
- require('../chunk-P57PW2II.js');
19
-
20
-
21
- exports.KeycloakProvider = _chunk6APOOEW6js.KeycloakProvider;
@@ -1,21 +0,0 @@
1
- import {
2
- KeycloakProvider
3
- } from "../chunk-DNEUOHZQ.mjs";
4
- import "../chunk-JPQI72HR.mjs";
5
- import "../chunk-C6TOWKPW.mjs";
6
- import "../chunk-IGSEESI3.mjs";
7
- import "../chunk-HH32BME2.mjs";
8
- import "../chunk-L3HTVJ4B.mjs";
9
- import "../chunk-HTWZLBA4.mjs";
10
- import "../chunk-UKSHA3X3.mjs";
11
- import "../chunk-OBB23GPX.mjs";
12
- import "../chunk-OYWXU5N7.mjs";
13
- import "../chunk-2L5TXBDK.mjs";
14
- import "../chunk-KWNIT4G4.mjs";
15
- import "../chunk-JAFUI2JQ.mjs";
16
- import "../chunk-WMH347OL.mjs";
17
- import "../chunk-6FRYV4MK.mjs";
18
- import "../chunk-ZFXKCRJC.mjs";
19
- export {
20
- KeycloakProvider
21
- };
@@ -1,8 +0,0 @@
1
- export { AfterAuth, AfterAuthProps } from './AfterAuth.mjs';
2
- export { AuthProvider, AuthProviderProps, MessageSchema } from './AuthProvider/AuthProvider.mjs';
3
- export { KeycloakProvider, KeycloakProviderProps } from './KeycloakProvider.mjs';
4
- import 'react';
5
- import 'keycloak-js';
6
- import 'next-auth/react';
7
- import '../authConfig.mjs';
8
- import 'next-auth';
@@ -1,8 +0,0 @@
1
- export { AfterAuth, AfterAuthProps } from './AfterAuth.js';
2
- export { AuthProvider, AuthProviderProps, MessageSchema } from './AuthProvider/AuthProvider.js';
3
- export { KeycloakProvider, KeycloakProviderProps } from './KeycloakProvider.js';
4
- import 'react';
5
- import 'keycloak-js';
6
- import 'next-auth/react';
7
- import '../authConfig.js';
8
- import 'next-auth';
@@ -1,28 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-BUZONXAW.js');
2
-
3
-
4
- var _chunk6APOOEW6js = require('../chunk-6APOOEW6.js');
5
- require('../chunk-MDAAMGTE.js');
6
-
7
-
8
- var _chunkW4LGQZMFjs = require('../chunk-W4LGQZMF.js');
9
-
10
-
11
- var _chunkEGCPD3BXjs = require('../chunk-EGCPD3BX.js');
12
- require('../chunk-ZCBD6HWK.js');
13
- require('../chunk-TUJRPTZE.js');
14
- require('../chunk-3ZTSLDX7.js');
15
- require('../chunk-I5FNGKQ6.js');
16
- require('../chunk-VS4M7GMO.js');
17
- require('../chunk-74FSREBY.js');
18
- require('../chunk-YACGLW5Q.js');
19
- require('../chunk-2VGMJ7WP.js');
20
- require('../chunk-32AVT4GA.js');
21
- require('../chunk-A2V2S4HP.js');
22
- require('../chunk-2VDDEPLF.js');
23
- require('../chunk-P57PW2II.js');
24
-
25
-
26
-
27
-
28
- exports.AfterAuth = _chunkEGCPD3BXjs.AfterAuth; exports.AuthProvider = _chunkW4LGQZMFjs.AuthProvider; exports.KeycloakProvider = _chunk6APOOEW6js.KeycloakProvider;
@@ -1,28 +0,0 @@
1
- import "../chunk-UESWAK47.mjs";
2
- import {
3
- KeycloakProvider
4
- } from "../chunk-DNEUOHZQ.mjs";
5
- import "../chunk-JPQI72HR.mjs";
6
- import {
7
- AuthProvider
8
- } from "../chunk-C6TOWKPW.mjs";
9
- import {
10
- AfterAuth
11
- } from "../chunk-IGSEESI3.mjs";
12
- import "../chunk-HH32BME2.mjs";
13
- import "../chunk-L3HTVJ4B.mjs";
14
- import "../chunk-HTWZLBA4.mjs";
15
- import "../chunk-UKSHA3X3.mjs";
16
- import "../chunk-OBB23GPX.mjs";
17
- import "../chunk-OYWXU5N7.mjs";
18
- import "../chunk-2L5TXBDK.mjs";
19
- import "../chunk-KWNIT4G4.mjs";
20
- import "../chunk-JAFUI2JQ.mjs";
21
- import "../chunk-WMH347OL.mjs";
22
- import "../chunk-6FRYV4MK.mjs";
23
- import "../chunk-ZFXKCRJC.mjs";
24
- export {
25
- AfterAuth,
26
- AuthProvider,
27
- KeycloakProvider
28
- };
package/lib/routes.d.mts DELETED
@@ -1,34 +0,0 @@
1
- import * as next_server from 'next/server';
2
- import { AccessTokenParsed } from './token.mjs';
3
- import { AuthOptions } from 'next-auth';
4
- import { JWT } from 'next-auth/jwt';
5
- import { OAuthUserConfig } from 'next-auth/providers';
6
- import 'keycloak-js';
7
-
8
- declare function createAuthHandler(options: AuthHandlerOptions): any;
9
- declare function createLogoutHandler(options: AuthHandlerOptions): {
10
- GET(): Promise<next_server.NextResponse<unknown>>;
11
- };
12
- declare function createNextAuthOptions(options: AuthHandlerOptions): AuthOptions;
13
- interface AuthHandlerOptions {
14
- baseUrl: string;
15
- keycloak: KeycloakOptions;
16
- nextAuth?: Partial<AuthOptions>;
17
- }
18
- interface KeycloakOptions extends OAuthUserConfig<any> {
19
- adminPassword?: string;
20
- adminUsername?: string;
21
- baseUrl?: string;
22
- realm?: string;
23
- }
24
- interface NextToken extends JWT {
25
- accessToken?: string;
26
- decoded: AccessTokenParsed;
27
- err?: Error;
28
- expiresAt: number;
29
- idToken?: string;
30
- refreshToken: string;
31
- roles: string[];
32
- }
33
-
34
- export { type AuthHandlerOptions, type KeycloakOptions, type NextToken, createAuthHandler, createLogoutHandler, createNextAuthOptions };
package/lib/routes.d.ts DELETED
@@ -1,34 +0,0 @@
1
- import * as next_server from 'next/server';
2
- import { AccessTokenParsed } from './token.js';
3
- import { AuthOptions } from 'next-auth';
4
- import { JWT } from 'next-auth/jwt';
5
- import { OAuthUserConfig } from 'next-auth/providers';
6
- import 'keycloak-js';
7
-
8
- declare function createAuthHandler(options: AuthHandlerOptions): any;
9
- declare function createLogoutHandler(options: AuthHandlerOptions): {
10
- GET(): Promise<next_server.NextResponse<unknown>>;
11
- };
12
- declare function createNextAuthOptions(options: AuthHandlerOptions): AuthOptions;
13
- interface AuthHandlerOptions {
14
- baseUrl: string;
15
- keycloak: KeycloakOptions;
16
- nextAuth?: Partial<AuthOptions>;
17
- }
18
- interface KeycloakOptions extends OAuthUserConfig<any> {
19
- adminPassword?: string;
20
- adminUsername?: string;
21
- baseUrl?: string;
22
- realm?: string;
23
- }
24
- interface NextToken extends JWT {
25
- accessToken?: string;
26
- decoded: AccessTokenParsed;
27
- err?: Error;
28
- expiresAt: number;
29
- idToken?: string;
30
- refreshToken: string;
31
- roles: string[];
32
- }
33
-
34
- export { type AuthHandlerOptions, type KeycloakOptions, type NextToken, createAuthHandler, createLogoutHandler, createNextAuthOptions };