diff --git a/src/Google/AccessToken/Verify.php b/src/Google/AccessToken/Verify.php index 09d71b9dd..bc0afcb39 100644 --- a/src/Google/AccessToken/Verify.php +++ b/src/Google/AccessToken/Verify.php @@ -211,8 +211,8 @@ private function getJwtService() $jwtClass = 'Firebase\JWT\JWT'; } - if (property_exists($jwtClass, 'leeway')) { - // adds 1 second to JWT leeway + if (property_exists($jwtClass, 'leeway') && $jwtClass::$leeway < 1) { + // Ensures JWT leeway is at least 1 // @see https://github.com/google/google-api-php-client/issues/827 $jwtClass::$leeway = 1; }