mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 14:54:33 +00:00
rename cookie fcn
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
import { Session } from "@zitadel/server";
|
||||
import { listSessions, server } from "#/lib/zitadel";
|
||||
import { getAllSessionIds } from "#/utils/cookies";
|
||||
import { getAllSessionCookieIds } from "#/utils/cookies";
|
||||
import { UserPlusIcon } from "@heroicons/react/24/outline";
|
||||
import Link from "next/link";
|
||||
import SessionsList from "#/ui/SessionsList";
|
||||
|
||||
async function loadSessions(): Promise<Session[]> {
|
||||
const ids = await getAllSessionIds();
|
||||
const ids = await getAllSessionCookieIds();
|
||||
|
||||
if (ids && ids.length) {
|
||||
const response = await listSessions(
|
||||
|
||||
@@ -135,7 +135,7 @@ export async function getSessionCookieByLoginName(
|
||||
}
|
||||
}
|
||||
|
||||
export async function getAllSessionIds(): Promise<any> {
|
||||
export async function getAllSessionCookieIds(): Promise<any> {
|
||||
const cookiesList = cookies();
|
||||
const stringifiedCookie = cookiesList.get("sessions");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user