Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
19
function
isAuthenticated(req: IncomingMessage): boolean {
20
return
getCookie(req,
'session'
) ===
'authenticated'
;
21
}
22
23
async
function
handleRequest(
24
req: IncomingMessage,
Callers
1
handleRequest
Function · 0.85
Calls
1
getCookie
Function · 0.85
Tested by
no test coverage detected