Intent-Code Divergence
Medium
- Confidence
- 98% confidence
- Finding
- The guide contains contradictory security guidance: the Pinia example persists an auth token in localStorage, while a later security section says not to store sensitive tokens in frontend storage. In a frontend engineering guide, readers may copy the earlier code directly, and localStorage-stored tokens are accessible to JavaScript and therefore exposed if XSS occurs, increasing account/session compromise risk.
