mirror of
https://github.com/Thream/socketio-jwt.git
synced 2024-07-21 09:38:31 +02:00
Merge pull request #39 from rickheere/master
Corrected a minor error in the documentation.
This commit is contained in:
commit
4a50d9e397
@ -20,7 +20,7 @@ var io = require("socket.io")(server),
|
|||||||
|
|
||||||
// set authorization for socket.io
|
// set authorization for socket.io
|
||||||
io.set('authorization', passportSocketIo.authorize({
|
io.set('authorization', passportSocketIo.authorize({
|
||||||
cookieParse: express.cookieParse,
|
cookieParser: express.cookieParser,
|
||||||
key: 'express.sid', // the name of the cookie where express/connect stores its session_id
|
key: 'express.sid', // the name of the cookie where express/connect stores its session_id
|
||||||
secret: 'session_secret', // the session_secret to parse the cookie
|
secret: 'session_secret', // the session_secret to parse the cookie
|
||||||
store: sessionStore, // we NEED to use a sessionstore. no memorystore please
|
store: sessionStore, // we NEED to use a sessionstore. no memorystore please
|
||||||
|
Loading…
Reference in New Issue
Block a user