Skip to main content

BEARER_TOKEN_REGEX

Static BEARER_TOKEN_REGEX 

Source
static BEARER_TOKEN_REGEX: LazyLock<Regex>
Expand description

Bearer token pattern with reduced false positives.

Requires:

  • “Bearer “ prefix (case-insensitive)
  • Token must be at least 20 chars to exclude short strings
  • Placeholder filtering is handled in detect() method