upstash / ratelimit-js

Rate limiting library for serverless runtimes
https://ratelimit-with-vercel-kv.vercel.app
MIT License
1.65k stars 33 forks source link

fix: 0 tokens remaining should not be rate limited #74

Closed chris13524 closed 9 months ago

chris13524 commented 9 months ago

-1 is returned when the number of tokens is currently 0, and 0 remaining tokens is a valid response and should not be considered a rate limit.

vercel[bot] commented 9 months ago

@chris13524 is attempting to deploy a commit to the Upstash Team on Vercel.

A member of the Team first needs to authorize it.