Register BIM logout in platform session flow

This commit is contained in:
DCCONSTRUCTIONS
2026-06-23 14:48:37 +03:00
parent 754142b2ca
commit 34ffa8ca4d
4 changed files with 20 additions and 3 deletions
+2 -2
View File
@@ -222,7 +222,7 @@ app.get("/auth/logged-out", (req, res) => {
res.clearCookie(sessionCookieName, clearCookieOptions());
res.clearCookie(oidcStateCookieName, clearCookieOptions());
setNoStore(res);
res.redirect(buildLoginRedirectUrl(returnTo, { forceLogin: true }));
res.redirect(buildLoginRedirectUrl(returnTo, { includeReturnTo: returnTo !== "/" }));
});
app.get("/auth/session-sync", (req, res) => {
@@ -3110,7 +3110,7 @@ function getBimViewerBaseUrl(app = null) {
app?.launchTargetUrl ||
app?.openUrl ||
app?.url ||
"http://localhost:8080"
"https://bim.nodedc.tech"
).replace(/\/$/, "");
}