change response file & request get user-profile & change design dashboard page & handle limit page dashboard
This commit is contained in:
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user