MCPcopy
hub / github.com/strongloop/loopback / verify

Function verify

test/user.test.js:1361–1373  ·  view source on GitHub ↗
(token, done)

Source from the content-addressed store, hash-verified

1359 });
1360
1361 function verify(token, done) {
1362 assert(token);
1363
1364 return function(err) {
1365 if (err) return done(err);
1366
1367 AccessToken.findById(token, function(err, accessToken) {
1368 assert(!accessToken, 'accessToken should not exist after logging out');
1369
1370 done(err);
1371 });
1372 };
1373 }
1374 });
1375
1376 describe('user.hasPassword(plain, fn)', function() {

Callers 1

logoutFunction · 0.85

Calls 1

doneFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…