MCPcopy Create free account
hub / github.com/code-pushup/cli / isAuthenticated

Function isAuthenticated

e2e/plugin-axe-e2e/mocks/fixtures/auth/server/server.ts:19–21  ·  view source on GitHub ↗
(req: IncomingMessage)

Source from the content-addressed store, hash-verified

17}
18
19function isAuthenticated(req: IncomingMessage): boolean {
20 return getCookie(req, 'session') === 'authenticated';
21}
22
23async function handleRequest(
24 req: IncomingMessage,

Callers 1

handleRequestFunction · 0.85

Calls 1

getCookieFunction · 0.85

Tested by

no test coverage detected