   res.render 'token/index'
 
 exports.kanbanIndex = (req, res) ->
-  req.session.token = token
-
-  tracker = new Tracker req.session.token
+  tracker = new Tracker req.cookies['pivotal-api-token']
   tracker.project req.params["projectId"], {},
     failure: (error) ->
       res.json JSON.parse error

              }

exports.projectIndex = (req, res) ->
  req.session.token = req.cookies['pivotal-api-token']

  tracker = new Tracker req.session.token
  tracker.projects
    failure: (error) ->
      res.json JSON.parse error

      }

exports.projectShow = (req, res) ->
  tracker = new Tracker req.cookies['pivotal-api-token']
  tracker.project req.params["projectId"], req.query,
    failure: (error) ->
      res.json JSON.parse error
