MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / clearSessionResponse

Function clearSessionResponse

packages/ci-proxy-worker/src/index.ts:364–373  ·  view source on GitHub ↗
(body: string, status: number)

Source from the content-addressed store, hash-verified

362}
363
364function clearSessionResponse(body: string, status: number): Response {
365 return new Response(body, {
366 status,
367 headers: {
368 "Content-Type": "text/html; charset=utf-8",
369 "Set-Cookie": `${SESSION_COOKIE}=; Path=/; HttpOnly; Secure; SameSite=Lax; Max-Age=0`,
370 "Cache-Control": "no-store",
371 },
372 });
373}
374
375function passwordPage(
376 session: EncodedSession,

Callers 1

handleRequestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected