MCPcopy
hub / github.com/dwyl/learn-json-web-tokens / authFail

Function authFail

example/lib/helpers.js:22–25  ·  view source on GitHub ↗
(res, callback)

Source from the content-addressed store, hash-verified

20
21// show fail page (login)
22function authFail(res, callback) {
23 res.writeHead(401, {'content-type': 'text/html'});
24 return res.end(fail);
25}
26
27// generate a GUID
28function generateGUID() {

Callers 3

authHandlerFunction · 0.85
validateFunction · 0.85
logoutFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected