Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tag: 0.0.1
Fetching contributors…

Cannot retrieve contributors at this time

24 lines (16 sloc) 0.495 kB

tako-session-token

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

Usage

// 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.