firebase / php-jwt

PHP package for JWT
BSD 3-Clause "New" or "Revised" License
9.3k stars 1.26k forks source link

fix: ensure ratelimit expiry is set every time #556

Closed bshaffer closed 1 month ago

bshaffer commented 6 months ago

fixes https://github.com/firebase/php-jwt/issues/543

Without setting the cached item expiry every time, the expiry is not persisted. In order to address this, we cache an array instead of an integer for the rate limit in the CachedKeySet class.