MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / handleLoginPage

Function handleLoginPage

telemetry-dashboard/src/index.ts:160–165  ·  view source on GitHub ↗
(env: Env, request: Request, url: URL)

Source from the content-addressed store, hash-verified

158}
159
160async function handleLoginPage(env: Env, request: Request, url: URL): Promise<Response> {
161 const next = safeNextPath(url.searchParams.get('next'));
162 if (await hasValidSession(env, request)) return redirect(next);
163 const styleNonce = nonce();
164 return html(renderLoginPage({ next, nonce: styleNonce }), { nonce: styleNonce });
165}
166
167async function handleLoginSubmit(env: Env, request: Request): Promise<Response> {
168 if (!isSameOriginPost(request)) {

Callers 1

fetchFunction · 0.85

Calls 6

renderLoginPageFunction · 0.90
safeNextPathFunction · 0.85
redirectFunction · 0.85
nonceFunction · 0.85
htmlFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected