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