diff --git a/docs/machine-requests/overview.mdx b/docs/machine-requests/overview.mdx index a0c4e353d9..5e24a0fcbc 100644 --- a/docs/machine-requests/overview.mdx +++ b/docs/machine-requests/overview.mdx @@ -94,7 +94,7 @@ For machine requests, you can use the `entity: 'machine'` option to authenticate export const POST = async () => { const { machineId } = await auth({ entity: 'machine' }); - if (!isMachineAuthenticated) { + if (!machineId) { return NextResponse.json({ message: 'Unauthorized' }, { status: 401 }); }