mirror of
https://github.com/Thream/socketio-jwt.git
synced 2024-07-21 09:38:31 +02:00
updated readme to reflect changes.
This commit is contained in:
parent
f62a93c9d2
commit
4123c38273
@ -24,7 +24,13 @@ Usage
|
||||
sio.set("authorization", passportSocketIo.authorize({
|
||||
sessionKey: 'express.sid', //the cookie where express (or connect) stores its session id.
|
||||
sessionStore: mySessionStore, //the session store that express uses
|
||||
sessionSecret: "my session secret" //the session secret to parse the cookie
|
||||
sessionSecret: "my session secret", //the session secret to parse the cookie
|
||||
fail: function(data, accept) { // *optional* callbacks on success or fail
|
||||
accept(null, false); // second param takes boolean on whether or not to allow handshake
|
||||
},
|
||||
success: function(data, accept) {
|
||||
accept(null, true);
|
||||
}
|
||||
}));
|
||||
|
||||
sio.sockets.on("connection", function(socket){
|
||||
|
Loading…
Reference in New Issue
Block a user