src/Security/CSRF.php
protected function isExpired(array $tokenData, $tokenValidity = null)
    {
        return time() >
            $tokenData['time'] + (($tokenValidity!==null) ? $tokenValidity : self::TOKEN_VALIDITY);
    }
protected function isExpired(array $tokenData, $tokenValidity = null)
    {
        return time() >
            $tokenData['time'] + (($tokenValidity!==null) ? $tokenValidity : self::TOKEN_VALIDITY);
    }
Checks token time validity
@param array $tokenData
@return bool true if token is expired (is after validity)