bearerToken
fun bearerToken(token: String, protect: Set<HttpMethod> = MUTATING, rateLimit: HostAuthentication.RateLimit? = null): HostAuthentication
Constant-time bearer token comparison.
Parameters
token
32-256 printable non-space ASCII characters, matching the metrics token rule in HostObservability. Short tokens are refused rather than accepted weakly.