@multiplatform.one/keycloak 0.7.3 → 0.7.5
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.
- package/LICENSE +201 -0
- package/lib/@types/expoKeycloakAuth.d.d.mts +16 -19
- package/lib/@types/expoKeycloakAuth.d.d.ts +16 -19
- package/lib/Authenticated.d.mts +4 -7
- package/lib/Authenticated.d.ts +4 -7
- package/lib/authConfig.d.mts +0 -23
- package/lib/authConfig.d.ts +0 -23
- package/lib/hooks/useAuthConfig.d.mts +0 -23
- package/lib/hooks/useAuthConfig.d.ts +0 -23
- package/lib/hooks/useCurrentRouteName/index.d.mts +0 -23
- package/lib/hooks/useCurrentRouteName/index.d.ts +0 -23
- package/lib/hooks/useCurrentRouteName/index.native.d.mts +0 -23
- package/lib/hooks/useCurrentRouteName/index.native.d.ts +0 -23
- package/lib/hooks/useKeycloak/index.d.mts +0 -24
- package/lib/hooks/useKeycloak/index.d.ts +0 -24
- package/lib/hooks/useKeycloak/useKeycloak.native.d.mts +0 -24
- package/lib/hooks/useKeycloak/useKeycloak.native.d.ts +0 -24
- package/lib/hooks/useLogin.d.mts +0 -23
- package/lib/hooks/useLogin.d.ts +0 -23
- package/lib/hooks/useTokensFromQuery/index.d.mts +0 -23
- package/lib/hooks/useTokensFromQuery/index.d.ts +0 -23
- package/lib/hooks/useTokensFromQuery/index.native.d.mts +0 -23
- package/lib/hooks/useTokensFromQuery/index.native.d.ts +0 -23
- package/lib/hooks/useTokensFromState.d.mts +0 -23
- package/lib/hooks/useTokensFromState.d.ts +0 -23
- package/lib/provider/afterAuth.d.mts +4 -7
- package/lib/provider/afterAuth.d.ts +4 -7
- package/lib/provider/index.d.mts +4 -7
- package/lib/provider/index.d.ts +4 -7
- package/lib/provider/keycloakProvider.d.mts +4 -7
- package/lib/provider/keycloakProvider.d.ts +4 -7
- package/lib/provider/keycloakProvider.native.d.mts +4 -7
- package/lib/provider/keycloakProvider.native.d.ts +4 -7
- package/lib/state/index.d.mts +0 -23
- package/lib/state/index.d.ts +0 -23
- package/lib/types.d.mts +0 -23
- package/lib/types.d.ts +0 -23
- package/lib/util.d.mts +0 -23
- package/lib/util.d.ts +0 -23
- package/package.json +20 -36
- package/src/@types/coreJsPure.d.ts +16 -19
- package/src/@types/expoKeycloakAuth.d.ts +16 -19
- package/src/Authenticated.tsx +4 -7
- package/src/authConfig.ts +16 -19
- package/src/hooks/index.ts +16 -19
- package/src/hooks/useAuthConfig.ts +16 -19
- package/src/hooks/useCurrentRouteName/index.native.ts +16 -19
- package/src/hooks/useCurrentRouteName/index.ts +16 -19
- package/src/hooks/useKeycloak/index.ts +16 -19
- package/src/hooks/useKeycloak/useKeycloak.native.ts +16 -19
- package/src/hooks/useKeycloak/useKeycloak.ts +16 -19
- package/src/hooks/useLogin.ts +16 -19
- package/src/hooks/useTokensFromQuery/index.native.ts +16 -19
- package/src/hooks/useTokensFromQuery/index.ts +16 -19
- package/src/hooks/useTokensFromState.ts +16 -19
- package/src/index.ts +16 -19
- package/src/provider/afterAuth.tsx +4 -7
- package/src/provider/index.tsx +4 -7
- package/src/provider/keycloakProvider.native.tsx +4 -7
- package/src/provider/keycloakProvider.tsx +4 -7
- package/src/state/index.ts +16 -19
- package/src/types.ts +16 -19
- package/src/util.ts +16 -19
- package/README.md +0 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@multiplatform.one/keycloak",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.5",
|
|
4
4
|
"description": "keycloak client for multiplatform.one ecosystem",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib/index.mjs",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"types": "./lib/index.d.ts"
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
|
-
"author": "
|
|
17
|
+
"author": "BitSpur",
|
|
18
18
|
"sideEffects": false,
|
|
19
19
|
"keywords": [
|
|
20
20
|
"auth",
|
|
@@ -39,51 +39,35 @@
|
|
|
39
39
|
"@react-native-async-storage/async-storage": "^1.17.11",
|
|
40
40
|
"@react-navigation/native": "^6.0.14",
|
|
41
41
|
"expo-keycloak-auth": "1.0.14",
|
|
42
|
-
"multiplatform.one": "^0.7.
|
|
42
|
+
"multiplatform.one": "^0.7.6",
|
|
43
43
|
"next": "^13.0.5",
|
|
44
44
|
"react": "^18.2.0",
|
|
45
45
|
"react-native": "~0.68.5"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@
|
|
49
|
-
"@
|
|
50
|
-
"@
|
|
51
|
-
"@
|
|
52
|
-
"@
|
|
53
|
-
"@react
|
|
54
|
-
"@types/
|
|
55
|
-
"
|
|
56
|
-
"@types/lodash.camelcase": "^4.3.7",
|
|
57
|
-
"@types/lodash.startcase": "^4.4.7",
|
|
58
|
-
"@types/react": "^18.2.21",
|
|
59
|
-
"@types/react-native": "^0.72.2",
|
|
60
|
-
"@typescript-eslint/eslint-plugin": "^6.7.0",
|
|
61
|
-
"@typescript-eslint/parser": "^6.7.0",
|
|
62
|
-
"babel-plugin-fully-specified": "^1.3.0",
|
|
63
|
-
"cspell": "^7.3.6",
|
|
64
|
-
"esbuild": "^0.19.3",
|
|
65
|
-
"esbuild-plugin-babel": "^0.2.3",
|
|
66
|
-
"eslint": "^8.49.0",
|
|
67
|
-
"eslint-config-alloy": "^5.1.2",
|
|
68
|
-
"eslint-plugin-react": "^7.33.2",
|
|
69
|
-
"eslint-plugin-spellcheck": "^0.0.20",
|
|
48
|
+
"@react-native-async-storage/async-storage": "^1.19.3",
|
|
49
|
+
"@react-navigation/native": "^6.1.9",
|
|
50
|
+
"@types/jest": "^29.5.6",
|
|
51
|
+
"@types/lodash.camelcase": "^4.3.8",
|
|
52
|
+
"@types/lodash.startcase": "^4.4.8",
|
|
53
|
+
"@types/react": "^18.2.32",
|
|
54
|
+
"@types/react-native": "^0.72.5",
|
|
55
|
+
"cspell": "^7.3.8",
|
|
70
56
|
"expo-keycloak-auth": "1.0.14",
|
|
71
|
-
"jest": "^29.
|
|
57
|
+
"jest": "^29.7.0",
|
|
72
58
|
"jest-sonar-reporter": "^2.0.0",
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"prettier": "^3.0.1",
|
|
59
|
+
"multiplatform.one": "^0.7.6",
|
|
60
|
+
"next": "^13.5.6",
|
|
61
|
+
"prettier": "^3.0.3",
|
|
77
62
|
"react": "^18.2.0",
|
|
78
|
-
"react-native": "~0.72.
|
|
63
|
+
"react-native": "~0.72.6",
|
|
79
64
|
"ts-node": "^10.9.1",
|
|
80
|
-
"typescript": "
|
|
65
|
+
"typescript": "~5.2.2"
|
|
81
66
|
},
|
|
82
67
|
"engines": {
|
|
83
68
|
"node": ">=6.0.0"
|
|
84
69
|
},
|
|
85
70
|
"eslintIgnore": [
|
|
86
|
-
"dist",
|
|
87
71
|
"lib"
|
|
88
72
|
],
|
|
89
73
|
"jest": {
|
|
@@ -108,8 +92,8 @@
|
|
|
108
92
|
"@bitspur/keycloak-js": "^21.1.2",
|
|
109
93
|
"@bitspur/react-keycloak-ssr": "^4.0.14",
|
|
110
94
|
"@bitspur/react-keycloak-web": "^4.0.14",
|
|
111
|
-
"core-js-pure": "^3.
|
|
112
|
-
"expo-auth-session": "^5.
|
|
113
|
-
"solito": "^4.
|
|
95
|
+
"core-js-pure": "^3.33.1",
|
|
96
|
+
"expo-auth-session": "^5.2.2",
|
|
97
|
+
"solito": "^4.1.3"
|
|
114
98
|
}
|
|
115
99
|
}
|
|
@@ -1,25 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* Modified By: Clay Risser
|
|
9
|
-
* -----
|
|
10
|
-
* Risser Labs LLC (c) Copyright 2022
|
|
1
|
+
/*
|
|
2
|
+
* File: /src/@types/coreJsPure.d.ts
|
|
3
|
+
* Project: @multiplatform.one/keycloak
|
|
4
|
+
* File Created: 23-06-2023 09:00:47
|
|
5
|
+
* Author: Clay Risser
|
|
6
|
+
* -----
|
|
7
|
+
* BitSpur (c) Copyright 2021 - 2023
|
|
11
8
|
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
+
* you may not use this file except in compliance with the License.
|
|
11
|
+
* You may obtain a copy of the License at
|
|
15
12
|
*
|
|
16
|
-
*
|
|
13
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
17
14
|
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
15
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
16
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
17
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
18
|
+
* See the License for the specific language governing permissions and
|
|
19
|
+
* limitations under the License.
|
|
23
20
|
*/
|
|
24
21
|
|
|
25
22
|
// declare module 'core-js-pure/stable/atob' {
|
|
@@ -1,25 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* Modified By: Clay Risser
|
|
9
|
-
* -----
|
|
10
|
-
* Risser Labs LLC (c) Copyright 2022
|
|
1
|
+
/*
|
|
2
|
+
* File: /src/@types/expoKeycloakAuth.d.ts
|
|
3
|
+
* Project: @multiplatform.one/keycloak
|
|
4
|
+
* File Created: 22-06-2023 10:07:56
|
|
5
|
+
* Author: Clay Risser
|
|
6
|
+
* -----
|
|
7
|
+
* BitSpur (c) Copyright 2021 - 2023
|
|
11
8
|
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
+
* you may not use this file except in compliance with the License.
|
|
11
|
+
* You may obtain a copy of the License at
|
|
15
12
|
*
|
|
16
|
-
*
|
|
13
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
17
14
|
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
15
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
16
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
17
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
18
|
+
* See the License for the specific language governing permissions and
|
|
19
|
+
* limitations under the License.
|
|
23
20
|
*/
|
|
24
21
|
|
|
25
22
|
declare module 'expo-keycloak-auth' {
|
package/src/Authenticated.tsx
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* File: /
|
|
3
|
-
* Project:
|
|
4
|
-
* File Created:
|
|
2
|
+
* File: /src/Authenticated.tsx
|
|
3
|
+
* Project: @multiplatform.one/keycloak
|
|
4
|
+
* File Created: 22-06-2023 10:07:56
|
|
5
5
|
* Author: Clay Risser
|
|
6
6
|
* -----
|
|
7
|
-
*
|
|
8
|
-
* Modified By: Clay Risser
|
|
9
|
-
* -----
|
|
10
|
-
* Risser Labs LLC (c) Copyright 2021 - 2022
|
|
7
|
+
* BitSpur (c) Copyright 2021 - 2023
|
|
11
8
|
*
|
|
12
9
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
13
10
|
* you may not use this file except in compliance with the License.
|
package/src/authConfig.ts
CHANGED
|
@@ -1,25 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* Modified By: Clay Risser
|
|
9
|
-
* -----
|
|
10
|
-
* Risser Labs LLC (c) Copyright 2021 - 2022
|
|
1
|
+
/*
|
|
2
|
+
* File: /src/authConfig.ts
|
|
3
|
+
* Project: @multiplatform.one/keycloak
|
|
4
|
+
* File Created: 22-06-2023 10:07:56
|
|
5
|
+
* Author: Clay Risser
|
|
6
|
+
* -----
|
|
7
|
+
* BitSpur (c) Copyright 2021 - 2023
|
|
11
8
|
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
+
* you may not use this file except in compliance with the License.
|
|
11
|
+
* You may obtain a copy of the License at
|
|
15
12
|
*
|
|
16
|
-
*
|
|
13
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
17
14
|
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
15
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
16
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
17
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
18
|
+
* See the License for the specific language governing permissions and
|
|
19
|
+
* limitations under the License.
|
|
23
20
|
*/
|
|
24
21
|
|
|
25
22
|
import { createContext } from 'react';
|
package/src/hooks/index.ts
CHANGED
|
@@ -1,25 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* Modified By: Clay Risser
|
|
9
|
-
* -----
|
|
10
|
-
* Risser Labs LLC (c) Copyright 2021 - 2022
|
|
1
|
+
/*
|
|
2
|
+
* File: /src/hooks/index.ts
|
|
3
|
+
* Project: @multiplatform.one/keycloak
|
|
4
|
+
* File Created: 22-06-2023 10:07:56
|
|
5
|
+
* Author: Clay Risser
|
|
6
|
+
* -----
|
|
7
|
+
* BitSpur (c) Copyright 2021 - 2023
|
|
11
8
|
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
+
* you may not use this file except in compliance with the License.
|
|
11
|
+
* You may obtain a copy of the License at
|
|
15
12
|
*
|
|
16
|
-
*
|
|
13
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
17
14
|
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
15
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
16
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
17
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
18
|
+
* See the License for the specific language governing permissions and
|
|
19
|
+
* limitations under the License.
|
|
23
20
|
*/
|
|
24
21
|
|
|
25
22
|
export * from './useAuthConfig';
|
|
@@ -1,25 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* Modified By: Clay Risser
|
|
9
|
-
* -----
|
|
10
|
-
* Risser Labs LLC (c) Copyright 2021 - 2022
|
|
1
|
+
/*
|
|
2
|
+
* File: /src/hooks/useAuthConfig.ts
|
|
3
|
+
* Project: @multiplatform.one/keycloak
|
|
4
|
+
* File Created: 22-06-2023 10:07:56
|
|
5
|
+
* Author: Clay Risser
|
|
6
|
+
* -----
|
|
7
|
+
* BitSpur (c) Copyright 2021 - 2023
|
|
11
8
|
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
+
* you may not use this file except in compliance with the License.
|
|
11
|
+
* You may obtain a copy of the License at
|
|
15
12
|
*
|
|
16
|
-
*
|
|
13
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
17
14
|
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
15
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
16
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
17
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
18
|
+
* See the License for the specific language governing permissions and
|
|
19
|
+
* limitations under the License.
|
|
23
20
|
*/
|
|
24
21
|
|
|
25
22
|
import { useContext } from 'react';
|
|
@@ -1,25 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* Modified By: Clay Risser
|
|
9
|
-
* -----
|
|
10
|
-
* Risser Labs LLC (c) Copyright 2022 - 2023
|
|
1
|
+
/*
|
|
2
|
+
* File: /src/hooks/useCurrentRouteName/index.native.ts
|
|
3
|
+
* Project: @multiplatform.one/keycloak
|
|
4
|
+
* File Created: 22-06-2023 10:07:56
|
|
5
|
+
* Author: Clay Risser
|
|
6
|
+
* -----
|
|
7
|
+
* BitSpur (c) Copyright 2021 - 2023
|
|
11
8
|
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
+
* you may not use this file except in compliance with the License.
|
|
11
|
+
* You may obtain a copy of the License at
|
|
15
12
|
*
|
|
16
|
-
*
|
|
13
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
17
14
|
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
15
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
16
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
17
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
18
|
+
* See the License for the specific language governing permissions and
|
|
19
|
+
* limitations under the License.
|
|
23
20
|
*/
|
|
24
21
|
|
|
25
22
|
import { MultiPlatform } from 'multiplatform.one';
|
|
@@ -1,25 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* Modified By: Clay Risser
|
|
9
|
-
* -----
|
|
10
|
-
* Risser Labs LLC (c) Copyright 2022 - 2023
|
|
1
|
+
/*
|
|
2
|
+
* File: /src/hooks/useCurrentRouteName/index.ts
|
|
3
|
+
* Project: @multiplatform.one/keycloak
|
|
4
|
+
* File Created: 22-06-2023 10:07:56
|
|
5
|
+
* Author: Clay Risser
|
|
6
|
+
* -----
|
|
7
|
+
* BitSpur (c) Copyright 2021 - 2023
|
|
11
8
|
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
+
* you may not use this file except in compliance with the License.
|
|
11
|
+
* You may obtain a copy of the License at
|
|
15
12
|
*
|
|
16
|
-
*
|
|
13
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
17
14
|
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
15
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
16
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
17
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
18
|
+
* See the License for the specific language governing permissions and
|
|
19
|
+
* limitations under the License.
|
|
23
20
|
*/
|
|
24
21
|
|
|
25
22
|
import { MultiPlatform } from 'multiplatform.one';
|
|
@@ -1,25 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* Modified By: Clay Risser
|
|
9
|
-
* -----
|
|
10
|
-
* Risser Labs LLC (c) Copyright 2021 - 2022
|
|
1
|
+
/*
|
|
2
|
+
* File: /src/hooks/useKeycloak/index.ts
|
|
3
|
+
* Project: @multiplatform.one/keycloak
|
|
4
|
+
* File Created: 22-06-2023 10:07:56
|
|
5
|
+
* Author: Clay Risser
|
|
6
|
+
* -----
|
|
7
|
+
* BitSpur (c) Copyright 2021 - 2023
|
|
11
8
|
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
+
* you may not use this file except in compliance with the License.
|
|
11
|
+
* You may obtain a copy of the License at
|
|
15
12
|
*
|
|
16
|
-
*
|
|
13
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
17
14
|
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
15
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
16
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
17
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
18
|
+
* See the License for the specific language governing permissions and
|
|
19
|
+
* limitations under the License.
|
|
23
20
|
*/
|
|
24
21
|
|
|
25
22
|
import type { KeycloakResourceAccess, KeycloakRoles, KeycloakTokenParsed } from '@bitspur/keycloak-js';
|
|
@@ -1,25 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* Modified By: Clay Risser
|
|
9
|
-
* -----
|
|
10
|
-
* Risser Labs LLC (c) Copyright 2021 - 2022
|
|
1
|
+
/*
|
|
2
|
+
* File: /src/hooks/useKeycloak/useKeycloak.native.ts
|
|
3
|
+
* Project: @multiplatform.one/keycloak
|
|
4
|
+
* File Created: 22-06-2023 10:07:56
|
|
5
|
+
* Author: Clay Risser
|
|
6
|
+
* -----
|
|
7
|
+
* BitSpur (c) Copyright 2021 - 2023
|
|
11
8
|
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
+
* you may not use this file except in compliance with the License.
|
|
11
|
+
* You may obtain a copy of the License at
|
|
15
12
|
*
|
|
16
|
-
*
|
|
13
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
17
14
|
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
15
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
16
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
17
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
18
|
+
* See the License for the specific language governing permissions and
|
|
19
|
+
* limitations under the License.
|
|
23
20
|
*/
|
|
24
21
|
|
|
25
22
|
import atob from 'core-js-pure/stable/atob';
|
|
@@ -1,25 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* Modified By: Clay Risser
|
|
9
|
-
* -----
|
|
10
|
-
* Risser Labs LLC (c) Copyright 2021 - 2022
|
|
1
|
+
/*
|
|
2
|
+
* File: /src/hooks/useKeycloak/useKeycloak.ts
|
|
3
|
+
* Project: @multiplatform.one/keycloak
|
|
4
|
+
* File Created: 22-06-2023 10:07:56
|
|
5
|
+
* Author: Clay Risser
|
|
6
|
+
* -----
|
|
7
|
+
* BitSpur (c) Copyright 2021 - 2023
|
|
11
8
|
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
+
* you may not use this file except in compliance with the License.
|
|
11
|
+
* You may obtain a copy of the License at
|
|
15
12
|
*
|
|
16
|
-
*
|
|
13
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
17
14
|
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
15
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
16
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
17
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
18
|
+
* See the License for the specific language governing permissions and
|
|
19
|
+
* limitations under the License.
|
|
23
20
|
*/
|
|
24
21
|
|
|
25
22
|
import type { IKeycloak } from './index';
|
package/src/hooks/useLogin.ts
CHANGED
|
@@ -1,25 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* Modified By: Clay Risser
|
|
9
|
-
* -----
|
|
10
|
-
* Risser Labs LLC (c) Copyright 2021 - 2022
|
|
1
|
+
/*
|
|
2
|
+
* File: /src/hooks/useLogin.ts
|
|
3
|
+
* Project: @multiplatform.one/keycloak
|
|
4
|
+
* File Created: 22-06-2023 10:07:56
|
|
5
|
+
* Author: Clay Risser
|
|
6
|
+
* -----
|
|
7
|
+
* BitSpur (c) Copyright 2021 - 2023
|
|
11
8
|
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
+
* you may not use this file except in compliance with the License.
|
|
11
|
+
* You may obtain a copy of the License at
|
|
15
12
|
*
|
|
16
|
-
*
|
|
13
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
17
14
|
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
15
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
16
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
17
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
18
|
+
* See the License for the specific language governing permissions and
|
|
19
|
+
* limitations under the License.
|
|
23
20
|
*/
|
|
24
21
|
|
|
25
22
|
import { MultiPlatform } from 'multiplatform.one';
|
|
@@ -1,25 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* Modified By: Clay Risser
|
|
9
|
-
* -----
|
|
10
|
-
* Risser Labs LLC (c) Copyright 2022 - 2023
|
|
1
|
+
/*
|
|
2
|
+
* File: /src/hooks/useTokensFromQuery/index.native.ts
|
|
3
|
+
* Project: @multiplatform.one/keycloak
|
|
4
|
+
* File Created: 22-06-2023 10:07:56
|
|
5
|
+
* Author: Clay Risser
|
|
6
|
+
* -----
|
|
7
|
+
* BitSpur (c) Copyright 2021 - 2023
|
|
11
8
|
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
+
* you may not use this file except in compliance with the License.
|
|
11
|
+
* You may obtain a copy of the License at
|
|
15
12
|
*
|
|
16
|
-
*
|
|
13
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
17
14
|
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
15
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
16
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
17
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
18
|
+
* See the License for the specific language governing permissions and
|
|
19
|
+
* limitations under the License.
|
|
23
20
|
*/
|
|
24
21
|
|
|
25
22
|
export const useTokensFromQuery = () => false;
|