fix
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user