---
title: "Discussion on \"Authentication vs Authorization: What AI-Built Apps Often Get Wrong\" | Hashnode"
description: "Discussion on \"Authentication vs Authorization: What AI-Built Apps Often Get Wrong\". I use AI coding agents almost every day, and I still read every change they make. One thing I’ve noticed, in my own code and in a lot of projects I see online, is that the login part usually works. Yo"
url: "https://hashnode.com/posts/authentication-vs-authorization-what-ai-built-apps-often-get-wrong/6afc03dbc3f7cd957ce3e7f5"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Authentication vs Authorization: What AI-Built Apps Often Get Wrong](https://blog.aashish-panthi.com.np/authentication-vs-authorization-what-ai-built-apps-often-get-wrong?utm_source=hashnode&utm_medium=feed)

I use AI coding agents almost every day, and I still read every change they make. One thing I’ve noticed, in my own code and in a lot of projects I see online, is that the login part usually works. Yo

10h ago · 3 min read · blog.aashish-panthi.com.np  
Read the article

## Written by

[Aashish Panthi](https://hashnode.com/@aashishpanthi)

@aashishpanthi · Butwal, Nepal

  
[View profile](https://hashnode.com/@aashishpanthi)

A developer

I am a developer from Nepal who loves playing with tech.

## Responses 3

Markdown supported · ⌘↵ to post

[OneLifeVibe](https://hashnode.com/@onelifevibe)

[8h ago](https://hashnode.com/posts/authentication-vs-authorization-what-ai-built-apps-often-get-wrong/6afc03dbc3f7cd957ce3e7f5/comment/6afc19474203073b5bfad85b)

The point about a valid token not being meant for your app is the part I would underline. It is easy to treat a successful login as proof that the request is safe, and then skip the checks that actually decide what the user may do. I also liked the reminder to validate permissions on the backend on every request, not only in the interface. Hiding a button is not a security control. Reading every change an AI coding agent makes, the way you describe, is the right habit here, because these are exactly the gaps that look finished at first glance.

[Aashish Panthi](https://hashnode.com/@aashishpanthi)

[7h ago](https://hashnode.com/posts/authentication-vs-authorization-what-ai-built-apps-often-get-wrong/6afc03dbc3f7cd957ce3e7f5/comment/6afc19474203073b5bfad85b#reply-6afc2a98e43409abca718b52)

Thanks! Yes, the issuer and audience check was the part I’d skipped before too. Easy to miss when the login already works.

[Puneet Khandelwal](https://hashnode.com/@lifestyle4u)

[1h ago](https://hashnode.com/posts/authentication-vs-authorization-what-ai-built-apps-often-get-wrong/6afc03dbc3f7cd957ce3e7f5/comment/6afc7a3448415021cf2617f5)

Spot on. People treat AI permissions like a simple prompt check, forgetting actual resource isolation needs proper backend guardrails.
