     
     override func viewDidAppear(_ animated: Bool) {
         self.updateCellSize()
-        
-        Authorization.sharedInstance.authorize()
-        
         updateDataSource()
     
     }

        refresher.addTarget(self, action: #selector(updateDataSource), for: .valueChanged)
        collectionView!.addSubview(refresher)
        
        
    }

    // MARK: User Authentication

    }
    
    @objc func updateDataSource(){
        if Authorization.sharedInstance.token.allKeys.count>0 {
            self.refresher.beginRefreshing()
            Post.fetch()
        } else {
            Authorization.sharedInstance.authorize()
        }

    }
