This commit is contained in:
NotII
2025-03-24 00:30:01 +00:00
parent 6566b427b0
commit 7234acc0d4
5 changed files with 629 additions and 136 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