Open bshaffer opened 1 year ago
See https://github.com/firebase/php-jwt/issues/488 and https://github.com/firebase/php-jwt/pull/492
use microtime instead of time for JWT validation.
microtime
time
We MAY want to do this in a minor version because it's possible that gettimeofday (which is required by microtime) doesn't exist on all systems. It may be possible to verify that the function does exist, and fall back on date if not.
gettimeofday
date
See https://github.com/firebase/php-jwt/issues/488 and https://github.com/firebase/php-jwt/pull/492
use
microtime
instead oftime
for JWT validation.We MAY want to do this in a minor version because it's possible that
gettimeofday
(which is required bymicrotime
) doesn't exist on all systems. It may be possible to verify that the function does exist, and fall back ondate
if not.