rm unused code

This commit is contained in:
Max Peintner
2023-05-24 16:57:35 +02:00
parent 04f79ee319
commit 195e10d402
2 changed files with 0 additions and 23 deletions

View File

@@ -13,18 +13,6 @@ const nextConfig = {
port: "",
pathname: "/**",
},
{
protocol: "https",
hostname: "zitadel.com",
port: "",
pathname: "/**",
},
{
protocol: "https",
hostname: "zitadel.cloud",
port: "",
pathname: "/**",
},
],
},
};

View File

@@ -9,17 +9,6 @@ export type SessionCookie = {
changeDate: string;
};
async function set(sessions: SessionCookie[]) {
const cookiesList = cookies();
// @ts-ignore
cookiesList.set({
name: "sessions",
value: JSON.stringify(sessions),
httpOnly: true,
path: "/",
});
}
export async function addSessionToCookie(session: SessionCookie): Promise<any> {
const cookiesList = cookies();
const stringifiedCookie = cookiesList.get("sessions");