diff --git a/lib/index.js b/lib/index.js index 0c14a8d..bcba250 100644 --- a/lib/index.js +++ b/lib/index.js @@ -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; }