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.cjs +2 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +2 -3
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -6043,10 +6043,9 @@ 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);
|