This commit is contained in:
NotII
2025-03-24 00:52:02 +00:00
parent 6566b427b0
commit 1aaf349d3d
2 changed files with 20 additions and 6 deletions

View File

@@ -12,7 +12,7 @@ export async function fetchServer<T = unknown>(
options: RequestInit = {}
): Promise<T> {
// Get auth token from cookies
const cookieStore = cookies();
const cookieStore = await cookies();
const authToken = cookieStore.get('Authorization')?.value;
// Redirect to login if not authenticated