diff --git a/src/app/(protected)/admin/devices/page.tsx b/src/app/(protected)/admin/devices/page.tsx index f38ee61..d343b93 100644 --- a/src/app/(protected)/admin/devices/page.tsx +++ b/src/app/(protected)/admin/devices/page.tsx @@ -16,8 +16,7 @@ interface DeviceDTO { export default async function DeviceManagementPage() { const user = await requireAuthOrRedirect(); - const cookieStore = cookies(); - // @ts-expect-error cookies() isn't really async + const cookieStore = await cookies(); const token = cookieStore.get('authToken')?.value; const res = await axiosServer.get('/admin/devices', {