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:
parent
452cc19a87
commit
29b3882355
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user