app.delete('/api/notes/:id', async (req, res) => {
await db.notes.delete({ id: req.params.id });
res.sendStatus(204);
});app.delete('/api/notes/:id', requireAuth, async (req, res) => {
const note = await db.notes.find({ id: req.params.id });
if (note?.ownerId !== req.user.id) return res.sendStatus(404);
await db.notes.delete({ id: note.id });
res.sendStatus(204);
});The server checks the user and ownership, instead of trusting that the UI only shows the delete button to the owner.
No, it is fine for prototypes, demos and personal tools. It becomes risky when unreviewed code handles real users, money or private data.
In vibe coding you accept code by how the app behaves. In agentic coding you delegate tasks to agents but still review the changes and own the result.
Review authentication, access rules, secrets and input validation, add tests, and check every dependency before real users rely on it.