feat: add iOS support and harden receipt scanning
This commit is contained in:
@@ -19,7 +19,7 @@ export async function POST(req: NextRequest) {
|
||||
const csrfBlocked = requireCsrf(req);
|
||||
if (csrfBlocked) return csrfBlocked;
|
||||
|
||||
const user = await getCurrentUser();
|
||||
const user = await getCurrentUser(req);
|
||||
if (!user) {
|
||||
return NextResponse.json({ error: "Unauthorized" }, { status: 401 });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user