title: Swift 3.0 token expire how will be call the token automatically?
body: <p>Once the token is received, when the token is over, then how can I call the token automatically after the login? on same page</p>
  
  <pre><code> Alamofire.request(urlString, method: .post, parameters: newPost, encoding: JSONEncoding.default)
          .responseJSON { response in
  
              if let json = response.result.value as? [String : Any]{
                  print("JSON: \(json)")
                  if UserDefaults.standard.bool(forKey: "logged_in") {
  
                      Token = json["Token"]! as! String
  
                      UserDefaults.standard.set(Token, forKey: "Token")
                      UserDefaults.standard.synchronize()
  
                  }
  
              } else {
                  print("Did not receive json")
              }
  
              //expectation.fulfill()
      }
  </code></pre>