← all rules
code/js-jwt-decode-instead-of-verify
JWT decoded without verification
What it detects
jwt.decode() does NOT verify the signature — callers often mistake it for authentication. Use jwt.verify with the signing key.
How it runs
Applied line-by-line via a tagged regex with language-specific gating. Comments are skipped. Designed for high-confidence patterns where AST parsing would be overkill.
Found a false positive or want this rule tuned? File an issue. You can also suppress per-repo via a .repoguardignore line.