mirror of
https://github.com/Thream/socketio-jwt.git
synced 2024-07-21 09:38:31 +02:00
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:
parent
b7c88dde73
commit
dac693930b
@ -144,7 +144,7 @@ function authorize(options, onConnection) {
|
|||||||
|
|
||||||
data.decoded_token = decoded;
|
data.decoded_token = decoded;
|
||||||
|
|
||||||
auth.success(data, accept);
|
return auth.success(data, accept);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user