jfromaniello / passport.socketio

access passport.js authenticated user information from socket.io connection
655 stars 81 forks source link

fail callback syntax #113

Closed DominicBoettger closed 8 years ago

DominicBoettger commented 8 years ago

It seems that in the combination with the latest passport/redis version the callback has changed

works: fail: function(data, message, authenticated, accept) {

does not work anymore: fail: function(data, accept) {

jfromaniello commented 8 years ago

The fail callback has this signature since we introduced it in this commit:

https://github.com/jfromaniello/passport.socketio/commit/928cd508ffe40c9ed7726a38131d917c6075cdc9

DominicBoettger commented 8 years ago

Okay, thanks. Saw it has also been changed in the docs.