mirror of
https://github.com/Thream/socketio-jwt.git
synced 2024-07-21 09:38:31 +02:00
req._query is now req.query
Not sure exactly when this happened, but i had to make this change for my versions of node/js
This commit is contained in:
parent
80aa8dc023
commit
452cc19a87
@ -85,8 +85,8 @@ function authorize(options, onConnection) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//get the token from query string
|
//get the token from query string
|
||||||
if (req._query && req._query.token) {
|
if (req.query && req.query.token) {
|
||||||
token = req._query.token;
|
token = req.query.token;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!token) {
|
if (!token) {
|
||||||
|
Loading…
Reference in New Issue
Block a user