@multiplatform.one/keycloak 0.7.3 → 0.7.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/LICENSE +201 -0
  2. package/lib/@types/expoKeycloakAuth.d.d.mts +16 -19
  3. package/lib/@types/expoKeycloakAuth.d.d.ts +16 -19
  4. package/lib/Authenticated.d.mts +4 -7
  5. package/lib/Authenticated.d.ts +4 -7
  6. package/lib/authConfig.d.mts +0 -23
  7. package/lib/authConfig.d.ts +0 -23
  8. package/lib/hooks/useAuthConfig.d.mts +0 -23
  9. package/lib/hooks/useAuthConfig.d.ts +0 -23
  10. package/lib/hooks/useCurrentRouteName/index.d.mts +0 -23
  11. package/lib/hooks/useCurrentRouteName/index.d.ts +0 -23
  12. package/lib/hooks/useCurrentRouteName/index.native.d.mts +0 -23
  13. package/lib/hooks/useCurrentRouteName/index.native.d.ts +0 -23
  14. package/lib/hooks/useKeycloak/index.d.mts +0 -24
  15. package/lib/hooks/useKeycloak/index.d.ts +0 -24
  16. package/lib/hooks/useKeycloak/useKeycloak.native.d.mts +0 -24
  17. package/lib/hooks/useKeycloak/useKeycloak.native.d.ts +0 -24
  18. package/lib/hooks/useLogin.d.mts +0 -23
  19. package/lib/hooks/useLogin.d.ts +0 -23
  20. package/lib/hooks/useTokensFromQuery/index.d.mts +0 -23
  21. package/lib/hooks/useTokensFromQuery/index.d.ts +0 -23
  22. package/lib/hooks/useTokensFromQuery/index.native.d.mts +0 -23
  23. package/lib/hooks/useTokensFromQuery/index.native.d.ts +0 -23
  24. package/lib/hooks/useTokensFromState.d.mts +0 -23
  25. package/lib/hooks/useTokensFromState.d.ts +0 -23
  26. package/lib/provider/afterAuth.d.mts +4 -7
  27. package/lib/provider/afterAuth.d.ts +4 -7
  28. package/lib/provider/index.d.mts +4 -7
  29. package/lib/provider/index.d.ts +4 -7
  30. package/lib/provider/keycloakProvider.d.mts +4 -7
  31. package/lib/provider/keycloakProvider.d.ts +4 -7
  32. package/lib/provider/keycloakProvider.native.d.mts +4 -7
  33. package/lib/provider/keycloakProvider.native.d.ts +4 -7
  34. package/lib/state/index.d.mts +0 -23
  35. package/lib/state/index.d.ts +0 -23
  36. package/lib/types.d.mts +0 -23
  37. package/lib/types.d.ts +0 -23
  38. package/lib/util.d.mts +0 -23
  39. package/lib/util.d.ts +0 -23
  40. package/package.json +20 -36
  41. package/src/@types/coreJsPure.d.ts +16 -19
  42. package/src/@types/expoKeycloakAuth.d.ts +16 -19
  43. package/src/Authenticated.tsx +4 -7
  44. package/src/authConfig.ts +16 -19
  45. package/src/hooks/index.ts +16 -19
  46. package/src/hooks/useAuthConfig.ts +16 -19
  47. package/src/hooks/useCurrentRouteName/index.native.ts +16 -19
  48. package/src/hooks/useCurrentRouteName/index.ts +16 -19
  49. package/src/hooks/useKeycloak/index.ts +16 -19
  50. package/src/hooks/useKeycloak/useKeycloak.native.ts +16 -19
  51. package/src/hooks/useKeycloak/useKeycloak.ts +16 -19
  52. package/src/hooks/useLogin.ts +16 -19
  53. package/src/hooks/useTokensFromQuery/index.native.ts +16 -19
  54. package/src/hooks/useTokensFromQuery/index.ts +16 -19
  55. package/src/hooks/useTokensFromState.ts +16 -19
  56. package/src/index.ts +16 -19
  57. package/src/provider/afterAuth.tsx +4 -7
  58. package/src/provider/index.tsx +4 -7
  59. package/src/provider/keycloakProvider.native.tsx +4 -7
  60. package/src/provider/keycloakProvider.tsx +4 -7
  61. package/src/state/index.ts +16 -19
  62. package/src/types.ts +16 -19
  63. package/src/util.ts +16 -19
  64. package/README.md +0 -3
@@ -2,30 +2,6 @@ import { AuthRequestPromptOptions, AuthSessionResult } from 'expo-auth-session';
2
2
  import { IKeycloak } from './index.js';
3
3
  import { KeycloakTokenParsed, KeycloakRoles, KeycloakResourceAccess } from '@bitspur/keycloak-js';
4
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
5
  declare function useKeycloak(): IKeycloak;
30
6
  declare class ExpoKeycloak implements IKeycloak {
31
7
  logout: () => Promise<unknown>;
@@ -1,26 +1,3 @@
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
1
  declare function useLogin(loginRoute?: string): () => void;
25
2
 
26
3
  export { useLogin };
@@ -1,26 +1,3 @@
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
1
  declare function useLogin(loginRoute?: string): () => void;
25
2
 
26
3
  export { useLogin };
@@ -1,26 +1,3 @@
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
1
  declare function useTokensFromQuery(): boolean;
25
2
 
26
3
  export { useTokensFromQuery };
@@ -1,26 +1,3 @@
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
1
  declare function useTokensFromQuery(): boolean;
25
2
 
26
3
  export { useTokensFromQuery };
@@ -1,26 +1,3 @@
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
1
  declare const useTokensFromQuery: () => boolean;
25
2
 
26
3
  export { useTokensFromQuery };
@@ -1,26 +1,3 @@
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
1
  declare const useTokensFromQuery: () => boolean;
25
2
 
26
3
  export { useTokensFromQuery };
@@ -1,26 +1,3 @@
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
1
  declare function useTokensFromState(): boolean;
25
2
 
26
3
  export { useTokensFromState };
@@ -1,26 +1,3 @@
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
1
  declare function useTokensFromState(): boolean;
25
2
 
26
3
  export { useTokensFromState };
@@ -1,15 +1,12 @@
1
1
  import { ReactNode, FC } from 'react';
2
2
 
3
3
  /**
4
- * File: /auth/provider/afterAuth.tsx
5
- * Project: app
6
- * File Created: 22-11-2022 17:49:58
4
+ * File: /src/provider/afterAuth.tsx
5
+ * Project: @multiplatform.one/keycloak
6
+ * File Created: 22-06-2023 10:07:56
7
7
  * Author: Clay Risser
8
8
  * -----
9
- * Last Modified: 22-11-2022 18:00:39
10
- * Modified By: Clay Risser
11
- * -----
12
- * Risser Labs LLC (c) Copyright 2021 - 2022
9
+ * BitSpur (c) Copyright 2021 - 2023
13
10
  *
14
11
  * Licensed under the Apache License, Version 2.0 (the "License");
15
12
  * you may not use this file except in compliance with the License.
@@ -1,15 +1,12 @@
1
1
  import { ReactNode, FC } from 'react';
2
2
 
3
3
  /**
4
- * File: /auth/provider/afterAuth.tsx
5
- * Project: app
6
- * File Created: 22-11-2022 17:49:58
4
+ * File: /src/provider/afterAuth.tsx
5
+ * Project: @multiplatform.one/keycloak
6
+ * File Created: 22-06-2023 10:07:56
7
7
  * Author: Clay Risser
8
8
  * -----
9
- * Last Modified: 22-11-2022 18:00:39
10
- * Modified By: Clay Risser
11
- * -----
12
- * Risser Labs LLC (c) Copyright 2021 - 2022
9
+ * BitSpur (c) Copyright 2021 - 2023
13
10
  *
14
11
  * Licensed under the Apache License, Version 2.0 (the "License");
15
12
  * you may not use this file except in compliance with the License.
@@ -5,15 +5,12 @@ import { KeycloakConfig, KeycloakInitOptions } from '@bitspur/keycloak-js';
5
5
  export { KeycloakProvider, KeycloakProviderProps, MessageSchema, defaultKeycloakInitOptions } from './keycloakProvider.mjs';
6
6
 
7
7
  /**
8
- * File: /auth/provider/index.tsx
9
- * Project: app
10
- * File Created: 08-11-2022 06:33:07
8
+ * File: /src/provider/index.tsx
9
+ * Project: @multiplatform.one/keycloak
10
+ * File Created: 22-06-2023 10:07:56
11
11
  * Author: Clay Risser
12
12
  * -----
13
- * Last Modified: 22-11-2022 18:00:13
14
- * Modified By: Clay Risser
15
- * -----
16
- * Risser Labs LLC (c) Copyright 2021 - 2022
13
+ * BitSpur (c) Copyright 2021 - 2023
17
14
  *
18
15
  * Licensed under the Apache License, Version 2.0 (the "License");
19
16
  * you may not use this file except in compliance with the License.
@@ -5,15 +5,12 @@ import { KeycloakConfig, KeycloakInitOptions } from '@bitspur/keycloak-js';
5
5
  export { KeycloakProvider, KeycloakProviderProps, MessageSchema, defaultKeycloakInitOptions } from './keycloakProvider.js';
6
6
 
7
7
  /**
8
- * File: /auth/provider/index.tsx
9
- * Project: app
10
- * File Created: 08-11-2022 06:33:07
8
+ * File: /src/provider/index.tsx
9
+ * Project: @multiplatform.one/keycloak
10
+ * File Created: 22-06-2023 10:07:56
11
11
  * Author: Clay Risser
12
12
  * -----
13
- * Last Modified: 22-11-2022 18:00:13
14
- * Modified By: Clay Risser
15
- * -----
16
- * Risser Labs LLC (c) Copyright 2021 - 2022
13
+ * BitSpur (c) Copyright 2021 - 2023
17
14
  *
18
15
  * Licensed under the Apache License, Version 2.0 (the "License");
19
16
  * you may not use this file except in compliance with the License.
@@ -3,15 +3,12 @@ import { AuthClientEvent, AuthClientError, AuthClientTokens } from '@bitspur/rea
3
3
  import { KeycloakConfig, KeycloakInitOptions } from '@bitspur/keycloak-js';
4
4
 
5
5
  /**
6
- * File: /auth/provider/keycloakProvider.tsx
7
- * Project: app
8
- * File Created: 08-11-2022 03:12:43
6
+ * File: /src/provider/keycloakProvider.tsx
7
+ * Project: @multiplatform.one/keycloak
8
+ * File Created: 22-06-2023 10:07:56
9
9
  * Author: Clay Risser
10
10
  * -----
11
- * Last Modified: 22-11-2022 18:07:46
12
- * Modified By: Clay Risser
13
- * -----
14
- * Risser Labs LLC (c) Copyright 2021 - 2022
11
+ * BitSpur (c) Copyright 2021 - 2023
15
12
  *
16
13
  * Licensed under the Apache License, Version 2.0 (the "License");
17
14
  * you may not use this file except in compliance with the License.
@@ -3,15 +3,12 @@ import { AuthClientEvent, AuthClientError, AuthClientTokens } from '@bitspur/rea
3
3
  import { KeycloakConfig, KeycloakInitOptions } from '@bitspur/keycloak-js';
4
4
 
5
5
  /**
6
- * File: /auth/provider/keycloakProvider.tsx
7
- * Project: app
8
- * File Created: 08-11-2022 03:12:43
6
+ * File: /src/provider/keycloakProvider.tsx
7
+ * Project: @multiplatform.one/keycloak
8
+ * File Created: 22-06-2023 10:07:56
9
9
  * Author: Clay Risser
10
10
  * -----
11
- * Last Modified: 22-11-2022 18:07:46
12
- * Modified By: Clay Risser
13
- * -----
14
- * Risser Labs LLC (c) Copyright 2021 - 2022
11
+ * BitSpur (c) Copyright 2021 - 2023
15
12
  *
16
13
  * Licensed under the Apache License, Version 2.0 (the "License");
17
14
  * you may not use this file except in compliance with the License.
@@ -4,15 +4,12 @@ import '@bitspur/react-keycloak-core';
4
4
  import '@bitspur/keycloak-js';
5
5
 
6
6
  /**
7
- * File: /auth/provider/keycloakProvider.native.tsx
8
- * Project: app
9
- * File Created: 08-11-2022 03:12:37
7
+ * File: /src/provider/keycloakProvider.native.tsx
8
+ * Project: @multiplatform.one/keycloak
9
+ * File Created: 22-06-2023 10:07:56
10
10
  * Author: Clay Risser
11
11
  * -----
12
- * Last Modified: 22-11-2022 17:52:31
13
- * Modified By: Clay Risser
14
- * -----
15
- * Risser Labs LLC (c) Copyright 2021 - 2022
12
+ * BitSpur (c) Copyright 2021 - 2023
16
13
  *
17
14
  * Licensed under the Apache License, Version 2.0 (the "License");
18
15
  * you may not use this file except in compliance with the License.
@@ -4,15 +4,12 @@ import '@bitspur/react-keycloak-core';
4
4
  import '@bitspur/keycloak-js';
5
5
 
6
6
  /**
7
- * File: /auth/provider/keycloakProvider.native.tsx
8
- * Project: app
9
- * File Created: 08-11-2022 03:12:37
7
+ * File: /src/provider/keycloakProvider.native.tsx
8
+ * Project: @multiplatform.one/keycloak
9
+ * File Created: 22-06-2023 10:07:56
10
10
  * Author: Clay Risser
11
11
  * -----
12
- * Last Modified: 22-11-2022 17:52:31
13
- * Modified By: Clay Risser
14
- * -----
15
- * Risser Labs LLC (c) Copyright 2021 - 2022
12
+ * BitSpur (c) Copyright 2021 - 2023
16
13
  *
17
14
  * Licensed under the Apache License, Version 2.0 (the "License");
18
15
  * you may not use this file except in compliance with the License.
@@ -1,26 +1,3 @@
1
- /**
2
- * File: /src/state/index.ts
3
- * Project: app
4
- * File Created: 22-11-2022 17:40:53
5
- * Author: Clay Risser
6
- * -----
7
- * Last Modified: 26-05-2023 07:31:04
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
1
  declare function useAuthState(): {
25
2
  idToken: string;
26
3
  refreshToken: string;
@@ -1,26 +1,3 @@
1
- /**
2
- * File: /src/state/index.ts
3
- * Project: app
4
- * File Created: 22-11-2022 17:40:53
5
- * Author: Clay Risser
6
- * -----
7
- * Last Modified: 26-05-2023 07:31:04
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
1
  declare function useAuthState(): {
25
2
  idToken: string;
26
3
  refreshToken: string;
package/lib/types.d.mts CHANGED
@@ -1,26 +1,3 @@
1
- /**
2
- * File: /src/types.ts
3
- * Project: @multiplatform.one/keycloak
4
- * File Created: 25-11-2022 10:27:53
5
- * Author: Clay Risser
6
- * -----
7
- * Last Modified: 25-11-2022 10:28:25
8
- * Modified By: Clay Risser
9
- * -----
10
- * Risser Labs LLC (c) Copyright 2022
11
- *
12
- * Licensed under the Apache License, Version 2.0 (the "License");
13
- * you may not use this file except in compliance with the License.
14
- * You may obtain a copy of the License at
15
- *
16
- * http://www.apache.org/licenses/LICENSE-2.0
17
- *
18
- * Unless required by applicable law or agreed to in writing, software
19
- * distributed under the License is distributed on an "AS IS" BASIS,
20
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21
- * See the License for the specific language governing permissions and
22
- * limitations under the License.
23
- */
24
1
  declare global {
25
2
  interface Window {
26
3
  ReactNativeWebView: {
package/lib/types.d.ts CHANGED
@@ -1,26 +1,3 @@
1
- /**
2
- * File: /src/types.ts
3
- * Project: @multiplatform.one/keycloak
4
- * File Created: 25-11-2022 10:27:53
5
- * Author: Clay Risser
6
- * -----
7
- * Last Modified: 25-11-2022 10:28:25
8
- * Modified By: Clay Risser
9
- * -----
10
- * Risser Labs LLC (c) Copyright 2022
11
- *
12
- * Licensed under the Apache License, Version 2.0 (the "License");
13
- * you may not use this file except in compliance with the License.
14
- * You may obtain a copy of the License at
15
- *
16
- * http://www.apache.org/licenses/LICENSE-2.0
17
- *
18
- * Unless required by applicable law or agreed to in writing, software
19
- * distributed under the License is distributed on an "AS IS" BASIS,
20
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21
- * See the License for the specific language governing permissions and
22
- * limitations under the License.
23
- */
24
1
  declare global {
25
2
  interface Window {
26
3
  ReactNativeWebView: {
package/lib/util.d.mts CHANGED
@@ -1,26 +1,3 @@
1
- /**
2
- * File: /src/util.ts
3
- * Project: @multiplatform.one/keycloak
4
- * File Created: 16-05-2023 06:29:32
5
- * Author: Clay Risser
6
- * -----
7
- * Last Modified: 16-05-2023 06:33:36
8
- * Modified By: Clay Risser
9
- * -----
10
- * Risser Labs LLC (c) Copyright 2022 - 2023
11
- *
12
- * Licensed under the Apache License, Version 2.0 (the "License");
13
- * you may not use this file except in compliance with the License.
14
- * You may obtain a copy of the License at
15
- *
16
- * http://www.apache.org/licenses/LICENSE-2.0
17
- *
18
- * Unless required by applicable law or agreed to in writing, software
19
- * distributed under the License is distributed on an "AS IS" BASIS,
20
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21
- * See the License for the specific language governing permissions and
22
- * limitations under the License.
23
- */
24
1
  declare function validToken(token: string | boolean, refreshToken?: string | boolean): string | boolean;
25
2
  declare function isTokenValid(token: string): boolean;
26
3
 
package/lib/util.d.ts CHANGED
@@ -1,26 +1,3 @@
1
- /**
2
- * File: /src/util.ts
3
- * Project: @multiplatform.one/keycloak
4
- * File Created: 16-05-2023 06:29:32
5
- * Author: Clay Risser
6
- * -----
7
- * Last Modified: 16-05-2023 06:33:36
8
- * Modified By: Clay Risser
9
- * -----
10
- * Risser Labs LLC (c) Copyright 2022 - 2023
11
- *
12
- * Licensed under the Apache License, Version 2.0 (the "License");
13
- * you may not use this file except in compliance with the License.
14
- * You may obtain a copy of the License at
15
- *
16
- * http://www.apache.org/licenses/LICENSE-2.0
17
- *
18
- * Unless required by applicable law or agreed to in writing, software
19
- * distributed under the License is distributed on an "AS IS" BASIS,
20
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21
- * See the License for the specific language governing permissions and
22
- * limitations under the License.
23
- */
24
1
  declare function validToken(token: string | boolean, refreshToken?: string | boolean): string | boolean;
25
2
  declare function isTokenValid(token: string): boolean;
26
3