refactor(agent): extract userId from JWT, remove chat_messages write, remove unused body fields

↗ view on GitHub · Jason Lee · 2026-05-07 · 7024448a

Extracts userId from Bearer JWT (sub claim) instead of trusting the
POST body, returns 401 if missing. Removes the assistant chat_messages
insert (frontend will own that write). Drops userId and messages from
the body type.
Repository dropthejase/louis
Author Jason Lee <12leeejk2@gmail.com>
Authored
Parents 74bee403
Stats 1 file changed , +16 , -10
Part of AgentCore Strands agent project (tools, factory, deploy)

Capture this commit into my fork

Download a Markdown prompt that tells Claude how to port this exact commit into your working tree. Run it via claude -p < capture-commit-7024448a.md from inside the repo you want the change in.

⬇ Download capture-commit-7024448a.md