fix(lib/index.js) return auth.success

Next step would not execute because no function(socket, next) was returned in case of successful verification in the 'one roundtrip' (handshake) approach.
Returning auth.success instead of just executing it solves this.

Fixes #51
This commit is contained in:
Pieter Jan De Smedt 2015-10-08 14:06:33 +02:00
parent b7c88dde73
commit dac693930b

View File

@ -144,7 +144,7 @@ function authorize(options, onConnection) {
data.decoded_token = decoded;
auth.success(data, accept);
return auth.success(data, accept);
});
};
}