MCPcopy Create free account
hub / github.com/avoidwork/tenso / validate

Function validate

src/utils/auth.js:222–228  ·  view source on GitHub ↗
(arg, cb)

Source from the content-addressed store, hash-verified

220 let x = {};
221
222 const validate = (arg, cb) => {
223 if (x[arg] !== void 0) {
224 cb(null, x[arg]);
225 } else {
226 cb(new Error(STATUS_CODES[INT_401]), null);
227 }
228 };
229
230 for (const i of obj.auth.basic.list || []) {
231 let args = i.split(COLON);

Callers 1

authFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected