@multiplatform.one/keycloak 0.3.20 → 0.3.22

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@multiplatform.one/keycloak",
3
- "version": "0.3.20",
3
+ "version": "0.3.22",
4
4
  "description": "keycloak client for multiplatform.one ecosystem",
5
5
  "main": "dist/lib",
6
6
  "module": "dist/esm",
@@ -54,7 +54,7 @@ export function Authenticated({ children, disabled, loginRoute, loggedOutCompone
54
54
  }, [authenticated]);
55
55
 
56
56
  if (disabled || authenticated) return <>{children}</>;
57
- const LoggedOutComponent = loggedOutComponent || (() => null);
57
+ const LoggedOutComponent = loggedOutComponent || (() => <>{authConfig.debug ? 'not authenticated' : null}</>);
58
58
  return <LoggedOutComponent />;
59
59
  }
60
60
 
@@ -224,12 +224,12 @@ export function KeycloakProvider({
224
224
  initOptions.token = token;
225
225
  if (idToken && typeof idToken === 'string') initOptions.idToken = idToken;
226
226
  if (refreshToken && typeof refreshToken === 'string') initOptions.refreshToken = refreshToken;
227
- if (tokensFromQuery) {
228
- initOptions.checkLoginIframe = false;
229
- initOptions.flow = 'implicit';
230
- initOptions.onLoad = undefined;
231
- initOptions.timeSkew = 0;
232
- }
227
+ }
228
+ if (tokensFromQuery) {
229
+ initOptions.checkLoginIframe = false;
230
+ initOptions.flow = 'implicit';
231
+ initOptions.onLoad = undefined;
232
+ initOptions.timeSkew = 0;
233
233
  }
234
234
  return initOptions;
235
235
  }, [keycloakInitOptions, token, refreshToken, idToken]);
@@ -4,7 +4,7 @@
4
4
  * File Created: 22-11-2022 17:40:53
5
5
  * Author: Clay Risser
6
6
  * -----
7
- * Last Modified: 13-05-2023 03:59:54
7
+ * Last Modified: 26-05-2023 07:31:04
8
8
  * Modified By: Clay Risser
9
9
  * -----
10
10
  * Risser Labs LLC (c) Copyright 2021 - 2022