mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 09:54:00 +00:00
rm unused code
This commit is contained in:
@@ -13,18 +13,6 @@ const nextConfig = {
|
|||||||
port: "",
|
port: "",
|
||||||
pathname: "/**",
|
pathname: "/**",
|
||||||
},
|
},
|
||||||
{
|
|
||||||
protocol: "https",
|
|
||||||
hostname: "zitadel.com",
|
|
||||||
port: "",
|
|
||||||
pathname: "/**",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
protocol: "https",
|
|
||||||
hostname: "zitadel.cloud",
|
|
||||||
port: "",
|
|
||||||
pathname: "/**",
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -9,17 +9,6 @@ export type SessionCookie = {
|
|||||||
changeDate: string;
|
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> {
|
export async function addSessionToCookie(session: SessionCookie): Promise<any> {
|
||||||
const cookiesList = cookies();
|
const cookiesList = cookies();
|
||||||
const stringifiedCookie = cookiesList.get("sessions");
|
const stringifiedCookie = cookiesList.get("sessions");
|
||||||
|
|||||||
Reference in New Issue
Block a user