MCPcopy
hub / github.com/krakenjs/lusca / findToken

Function findToken

test/csrf.js:430–433  ·  view source on GitHub ↗
(cookie)

Source from the content-addressed store, hash-verified

428 .get('/')
429 .end(function (err, res) {
430 function findToken(cookie) {
431 cookie = decodeURIComponent(cookie);
432 return !~cookie.indexOf(res.body.token);
433 }
434 assert(res.headers['set-cookie'].some(findToken));
435 done();
436 });

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected