diff --git a/lib/index.js b/lib/index.js index 7e014c7..bcba250 100644 --- a/lib/index.js +++ b/lib/index.js @@ -88,6 +88,9 @@ function authorize(options, onConnection) { if (req._query && req._query.token) { token = req._query.token; } + else if (req.query && req.query.token) { + token = req.query.token; + } if (!token) { error = new UnauthorizedError('credentials_required', {