Refresh HiveGrid Cloud reference snapshot

This commit is contained in:
david committed 2026-08-03 15:31:14 +02:00
1 parent 5e99e14772
commit 7f88026f79
5955 files changed
+1177325 -188362

No files matched your search

@@ -3,11 +3,20 @@ import { getDomainRoutingConfig } from "@hivegrid/config";
import { withMetrics } from "~/lib/metrics/ssr";
import { createLogLogout } from "~/utils/db/logs.db.server";
import { absoluteAppRootPath } from "~/utils/app/CrossHostUrls";
import { getHostRoutingContextFromRequest } from "~/utils/app/HostRouting.server";
import { getUserInfo, logout, validateCSRFToken } from "~/utils/session.server";
export const action: ActionFunction = async ({ request }) => {
await validateCSRFToken(request);
if (getHostRoutingContextFromRequest(request) === "admin") {
// Preserve the POST body across the same-host redirect so the dedicated
// route can validate CSRF again and perform Authentik RP-initiated logout.
return redirect("/auth/admin/logout", {
status: 307,
headers: { "Cache-Control": "no-store" },
});
}
const userInfo = await getUserInfo(request);
if (userInfo.userId) {
createLogLogout(request, userInfo.userId);