Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (16 sloc) 495 Bytes


Just a session token middleware for Tako. Works great with tako-cookies.


// various tako stuff...

var SessionToken = require("tako-session-token")
app.middle(new SessionToken("my-happy-app"))

// later...
app.route("/foo", function (req, res) {
  console.log(req.session) // some random string.

  // the idea is that then that random string will
  // be a key in some sort of persistent session
  // store such as redis, or something.
Jump to Line
Something went wrong with that request. Please try again.