Only look at cookies if they are available
This commit is contained in:
parent
0f4e9e1d1c
commit
ad58a8ec13
|
@ -174,13 +174,14 @@ function tokenIdForRequest(req, options) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for(i = 0, length = headers.length; i < length; i++) {
|
if(req.signedCookies) {
|
||||||
id = req.signedCookies[cookies[i]];
|
for(i = 0, length = headers.length; i < length; i++) {
|
||||||
|
id = req.signedCookies[cookies[i]];
|
||||||
|
|
||||||
if(typeof id === 'string') {
|
if(typeof id === 'string') {
|
||||||
return id;
|
return id;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue