From 452cc19a87f11d2b7ac68df004fa2e8a86bd5810 Mon Sep 17 00:00:00 2001 From: Oscar Date: Fri, 6 Jun 2014 12:28:11 -0500 Subject: [PATCH] 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 --- lib/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/index.js b/lib/index.js index 7e014c7..0c14a8d 100644 --- a/lib/index.js +++ b/lib/index.js @@ -85,8 +85,8 @@ function authorize(options, onConnection) { } //get the token from query string - if (req._query && req._query.token) { - token = req._query.token; + if (req.query && req.query.token) { + token = req.query.token; } if (!token) {