Merge pull request #12 from otothea/master
Add fall-forward from req._query to req.query
This commit is contained in:
commit
fe39d2c849
@ -88,6 +88,9 @@ function authorize(options, onConnection) {
|
|||||||
if (req._query && req._query.token) {
|
if (req._query && req._query.token) {
|
||||||
token = req._query.token;
|
token = req._query.token;
|
||||||
}
|
}
|
||||||
|
else if (req.query && req.query.token) {
|
||||||
|
token = req.query.token;
|
||||||
|
}
|
||||||
|
|
||||||
if (!token) {
|
if (!token) {
|
||||||
error = new UnauthorizedError('credentials_required', {
|
error = new UnauthorizedError('credentials_required', {
|
||||||
|
Reference in New Issue
Block a user