Authorization tests
Happy-path tests prove a user can see their own data. Authorization tests prove they CAN'T see everyone else's. Only the second kind catches a breach.
What this skill helps you build
Prove the negative: write the tests that show a user from one tenant cannot read or write another tenant's data — the bugs that don't crash, they leak.
The production takeaway
Happy-path tests prove a user can see their own data. Authorization tests prove they CAN'T see everyone else's. Only the second kind catches a breach.
Inside this skill
The full skill expands these implementation areas with decisions, edge cases, prompts, tests, and framework-specific code.
Unlock the full implementation
Paid access includes the complete skill body, implementation prompt, common mistakes, production checklist, and code examples where this skill includes them.