academe-kit 0.8.1 → 0.8.2

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,10 +6041,9 @@ 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);