HIGH AI PREVALENCE: HIGH auth.oauth.hardcoded-secret
An OAuth client_secret (or similarly sensitive credential) is being assigned a hard-coded string literal.
Why AI tools produce this: AI coding tools generate this anti-pattern by default, it appears in a large share of AI-written auth code.
Why this matters
The moment this lands in git, it is one search away from compromise.
Replace the literal with process.env.OAUTH_CLIENT_SECRET (or your secret manager equivalent) and add the variable to .env.example with a placeholder so contributors know it is required.
GitGuardian 2026 found 28.6M public secrets on GitHub, with Claude Code commits leaking at 2x baseline. This is the most common AI-coding leak.
VULNERABLE
SAFE
Suppressing this rule
If a finding is a genuine false positive, scope the suppression to the exact line and leave a reason, never disable the rule project-wide. Disable directives are line-scoped by design.
// oauthlint-disable-next-line auth.oauth.hardcoded-secret -- <reason>