2
1
mirror of https://github.com/Thream/socketio-jwt.git synced 2024-07-21 09:38:31 +02:00

Merge pull request #86 from bartlomiej-korpus/master

fix TypeError when authenticate is sent with null
This commit is contained in:
José F. Romaniello 2016-06-21 14:35:26 +02:00 committed by GitHub
commit 2d3e292268

View File

@ -41,7 +41,7 @@ function noQsMethod(options) {
}
};
if(typeof data.token !== "string") {
if(!data || typeof data.token !== "string") {
return onError({message: 'invalid token datatype'}, 'invalid_token');
}