academe-kit 0.8.1 → 0.8.3

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/dist/index.esm.js CHANGED
@@ -6041,16 +6041,16 @@ const AcademeAuthProvider = ({ realm, hubUrl, children, clientId, keycloakUrl, a
6041
6041
  const oidcConfig = {
6042
6042
  authority: `${keycloakUrl}/realms/${realm}`,
6043
6043
  client_id: clientId,
6044
- redirect_uri: redirectUri ||
6045
- typeof window !== "undefined"
6044
+ redirect_uri: redirectUri || (typeof window !== "undefined"
6046
6045
  ? window.location.origin
6047
- : process.env.NEXT_PUBLIC_REDIRECT_URI,
6046
+ : process.env.NEXT_PUBLIC_REDIRECT_URI),
6048
6047
  scope: "openid profile email",
6049
6048
  onSigninCallback: () => {
6050
6049
  window.history.replaceState({}, document.title, window.location.pathname);
6051
6050
  },
6052
6051
  automaticSilentRenew: true,
6053
6052
  };
6053
+ console.log('oidc ->', oidcConfig);
6054
6054
  return (jsx(AuthProvider, { ...oidcConfig, children: jsx(SecurityProvider, { hubUrl: hubUrl, apiBaseUrl: apiBaseUrl, skipApiUserFetch: skipApiUserFetch, children: children }) }));
6055
6055
  };
6056
6056
  const SecurityContext = createContext({