Avoid browser token storage
Access and session tokens should not be stored in long-lived browser storage.
#Metadata
#Why it matters
Long-lived browser storage exposes tokens to script access and increases the impact of XSS or device compromise.
#Remediation
Keep tokens in HttpOnly cookies or in memory, and avoid long-lived cleartext browser storage.
#Repository path
The generated metadata points to critiq-rules/libs/rules/catalog/rules/typescript/ts.security.browser-token-storage.rule.yaml.