@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.
- 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
|
@@ -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>;
|
package/lib/hooks/useLogin.d.mts
CHANGED
|
@@ -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 };
|
package/lib/hooks/useLogin.d.ts
CHANGED
|
@@ -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: /
|
|
5
|
-
* Project:
|
|
6
|
-
* File Created: 22-
|
|
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
|
-
*
|
|
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: /
|
|
5
|
-
* Project:
|
|
6
|
-
* File Created: 22-
|
|
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
|
-
*
|
|
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.
|
package/lib/provider/index.d.mts
CHANGED
|
@@ -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: /
|
|
9
|
-
* Project:
|
|
10
|
-
* File Created:
|
|
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
|
-
*
|
|
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.
|
package/lib/provider/index.d.ts
CHANGED
|
@@ -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: /
|
|
9
|
-
* Project:
|
|
10
|
-
* File Created:
|
|
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
|
-
*
|
|
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: /
|
|
7
|
-
* Project:
|
|
8
|
-
* File Created:
|
|
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
|
-
*
|
|
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: /
|
|
7
|
-
* Project:
|
|
8
|
-
* File Created:
|
|
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
|
-
*
|
|
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: /
|
|
8
|
-
* Project:
|
|
9
|
-
* File Created:
|
|
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
|
-
*
|
|
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: /
|
|
8
|
-
* Project:
|
|
9
|
-
* File Created:
|
|
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
|
-
*
|
|
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.
|
package/lib/state/index.d.mts
CHANGED
|
@@ -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/state/index.d.ts
CHANGED
|
@@ -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
|
|