fix(webapp): match the batch item bypass auth to the route

The bypass accepted a JWT while the item stream route does not, so a JWT could
spend a grant before the route rejected it, draining budget the legitimate
secret-key stream needs.
This commit is contained in:
Eric Allam
2026-07-27 18:02:47 +01:00
parent 1ce58a19b2
commit 2bf591fe0e
@@ -96,7 +96,6 @@ export const apiRateLimiter = authorizationRateLimitMiddleware({
const [authError, authenticated] = await tryCatch(
authenticateAuthorizationHeader(authorizationValue, {
allowPublicKey: true,
allowJWT: true,
})
);