Fix: Middlerawe/1

This commit is contained in:
2024-11-21 14:35:28 +08:00
parent 7e9dfce293
commit cc690eec06
12 changed files with 32 additions and 18 deletions

View File

@@ -10,7 +10,7 @@ import { redirect } from "next/navigation";
export async function user_funGetOneUserId(): Promise<string | null> {
try {
const kukis = cookies();
const c = kukis.get("ssn");
const c = kukis.get("mySession");
if (!c || !c?.value || _.isEmpty(c?.value) || _.isUndefined(c?.value))
return redirect(RouterAuth.login);