We've all done this. console.log("User login:", req.body); // Oops. Password just went to Datadog. logger.info({ user, token, session }); // Oops. Token just went to Sentry. I kept doing this in my projects. So I built a tiny npm package to fix it — fieldmasker. What it does It masks sensitive fields from any JavaScript object before it touches your logger, analytics, or API response. co

Stop accidentally logging passwords and tokens — fix it in one line
Yashwanth sai Arukuti·Dev.to··1 min read
D
Continue reading on Dev.to
This article was sourced from Dev.to's RSS feed. Visit the original for the complete story.