mirror of
https://github.com/Thream/socketio-jwt.git
synced 2024-07-21 09:38:31 +02:00
Merge pull request #37 from ceojasonnichols/patch-1
Missing Paren in Example
This commit is contained in:
commit
2bf410f130
@ -26,7 +26,7 @@ io.set('authorization', passportSocketIo.authorize({
|
|||||||
store: sessionStore, // we NEED to use a sessionstore. no memorystore please
|
store: sessionStore, // we NEED to use a sessionstore. no memorystore please
|
||||||
success: onAuthorizeSuccess, // *optional* callback on success - read more below
|
success: onAuthorizeSuccess, // *optional* callback on success - read more below
|
||||||
fail: onAuthorizeFail, // *optional* callback on fail/error - read more below
|
fail: onAuthorizeFail, // *optional* callback on fail/error - read more below
|
||||||
});
|
}));
|
||||||
|
|
||||||
function onAuthorizeSuccess(data, accept){
|
function onAuthorizeSuccess(data, accept){
|
||||||
console.log('successful connection to socket.io');
|
console.log('successful connection to socket.io');
|
||||||
|
Loading…
Reference in New Issue
Block a user