change response file & request get user-profile & change design dashboard page & handle limit page dashboard

This commit is contained in:
Ehsan
2025-05-31 03:35:23 +03:30
parent 0969eca274
commit 80c74361eb
38 changed files with 233 additions and 121 deletions
+2 -2
View File
@@ -2,7 +2,7 @@ import { cookies } from "next/headers";
export async function getUser() {
const cookieStore = cookies();
const raw = cookieStore.get("user");
const raw = cookieStore.get("access_token");
if (!raw) return null;
return JSON.parse(raw.value);
return raw;
}