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

Function assertNotBearer

test/oauthLogin.test.js:89–93  ·  view source on GitHub ↗
(headers, token)

Source from the content-addressed store, hash-verified

87}
88
89function assertNotBearer(headers, token) {
90 if (headers && headers.Authorization === 'Bearer ' + token) {
91 throw new Error('unexpected node-scoped bearer source');
92 }
93}
94
95function writeLegacyNodeSecret(home, secret, version, source) {
96 fs.writeFileSync(path.join(home, 'node_secret'), secret, 'utf8');

Callers 1

oauthLogin.test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected