socket io express session authorization

Usage no npm install needed!

<script type="module">
  import socketIoExpress from '';

README is a library for using express session for authorization of Tested with 0.9.10 and express 3


    var express = require('express')
    var RedisStore = require('connect-redis')(express);
    var redisStore = new RedisStore( { host:config.redis.address, port: config.redis.port });
    var cookieParser = express.cookieParser('supersecret');
    ... // your configurations
    app.use(express.session({store: redisStore}));
    ... // your configurations

    var authFunction = require('./').createAuthFunction(cookieParser, redisStore);
    io.set('authorization', authFunction);

# meta

There were a lot of inaccurate blog posts of how to use express (v.3) sessions with,
so I created this simple library.

Peter Klaesson