verifyApiKey
Verify an API key against the configured key. Uses a constant-time comparison
to prevent timing attacks. Returns false immediately when API key auth is
not configured.
Pass only the key value — this method does not parse headers. For full
header-based validation (which reads the configured apiKeyHeader, case-
insensitive), use validate().
Parameters
key
The API key string to verify.
Returns
boolean — true if the key matches; false if it doesn’t, or if API key
auth was not configured.