       res.json memberships
 
 exports.storiesIndex = (req, res) ->
-  tracker = new Tracker req.session.token
+  tracker = new Tracker req.cookies['pivotal-api-token']
   tracker.stories req.params["projectId"], req.query,
     failure: (jsonString) ->
       res.json JSON.parse jsonString

Story      = require "./../lib/story"
Membership = require "./../lib/membership"
Iteration  = require "./../lib/iteration"

token = "978f492d5d2a080ced6e8fbb801700fc"

exports.backboneIndex = (req, res) ->
  res.render 'backbone/index'

  res.render 'token/index'

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