Hacker News new | ask | show | jobs
by unscaled 45 days ago
True. But XSS stealing your token (which is always possible with localStorage) is still worse than XSS using your token. It's the principle of least privilege all over again.