Skip to content

Commit

Permalink
Update docs/machine-requests/overview.mdx
Browse files Browse the repository at this point in the history
Co-authored-by: Jakob Evangelista <[email protected]>
  • Loading branch information
Ben2W and jakobevangelista authored Feb 7, 2025
1 parent 11302aa commit e5630d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/machine-requests/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
}

Expand Down

0 comments on commit e5630d5

Please sign in to comment.