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:
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', {
|
||||||
|
Loading…
Reference in New Issue
Block a user