Companys are now listing on the companies page.

This commit is contained in:
2026-02-13 17:01:42 -06:00
parent 1a45f708ec
commit 6b176196d3
9 changed files with 304 additions and 250 deletions
+6 -1
View File
@@ -1,4 +1,4 @@
import { user } from "$lib";
import { api, user } from "$lib";
import { redirect, type Handle } from "@sveltejs/kit";
import { access } from "fs";
import { a } from "vitest/dist/chunks/suite.d.FvehnV49.js";
@@ -7,6 +7,11 @@ export const handle: Handle = async ({ event, resolve }) => {
const accessToken = event.cookies.get("access_token");
const refreshToken = event.cookies.get("refresh_token");
event.locals.session = {
accessToken: accessToken || "",
refreshToken: refreshToken || "",
};
if (event.url.pathname === "/logout") {
event.cookies.delete("access_token", { path: "/" });
event.cookies.delete("refresh_token", { path: "/" });