MCPcopy Create free account
hub / github.com/EvoMap/evolver / auth

Function auth

test/proxyTokenReuse.test.js:621–623  ·  view source on GitHub ↗
(tok)

Source from the content-addressed store, hash-verified

619
620 const port = info.port;
621 const auth = (tok) => fetch(`http://127.0.0.1:${port}/proxy/status`, {
622 headers: { 'Authorization': `Bearer ${tok}` },
623 });
624
625 const ok = await auth(goodGrace);
626 assert.equal(ok.status, 200, 'string grace token still accepted');

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected