2
1
mirror of https://github.com/Thream/socketio-jwt.git synced 2024-07-21 09:38:31 +02:00

Merge pull request #12 from otothea/master

Add fall-forward from req._query to req.query
This commit is contained in:
José F. Romaniello 2014-06-09 10:53:19 -03:00
commit fe39d2c849

View File

@ -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', {