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:
		| @@ -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; | ||||
|     } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user