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

Make it look for both kinds of query

add a check on req.query along with req._query for different versions
This commit is contained in:
Oscar 2014-06-06 13:09:06 -05:00
parent 452cc19a87
commit 29b3882355

View File

@ -85,7 +85,10 @@ function authorize(options, onConnection) {
}
//get the token from query string
if (req.query && req.query.token) {
if (req._query && req._query.token) {
token = req._query.token;
}
else if (req.query && req.query.token) {
token = req.query.token;
}