You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

tako-session-token

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tako-session-token

session tokens for tako

latest
Source
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

tako-session-token

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

Usage

var sessionToken = require("tako-session-token")

// use the default token of "tako-session"...
app.on("request", sessionToken)

// or define one of your own
app.on("request", sessionToken("myapp-session"))

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

FAQs

Package last updated on 20 Apr 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts