mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 10:36:44 +00:00
cookieset
This commit is contained in:
@@ -10,7 +10,7 @@ export type SessionCookie = {
|
||||
};
|
||||
|
||||
function setSessionHttpOnlyCookie(sessions: SessionCookie[]) {
|
||||
// @ts-ignore
|
||||
// @ts-ignore
|
||||
return cookiesList.set({
|
||||
name: "sessions",
|
||||
value: JSON.stringify(sessions),
|
||||
@@ -36,7 +36,7 @@ export async function addSessionToCookie(session: SessionCookie): Promise<any> {
|
||||
currentSessions = [...currentSessions, session];
|
||||
}
|
||||
|
||||
setSessionHttpOnlyCookie(value: string);
|
||||
setSessionHttpOnlyCookie(currentSessions);
|
||||
}
|
||||
|
||||
export async function updateSessionCookie(
|
||||
|
||||
Reference in New Issue
Block a user