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

Function loginRedirect

telemetry-dashboard/src/index.ts:132–136  ·  view source on GitHub ↗
(url: URL)

Source from the content-addressed store, hash-verified

130}
131
132function loginRedirect(url: URL): Response {
133 const next = `${url.pathname}${url.search}`;
134 const target = next === '/' ? '/login' : `/login?next=${encodeURIComponent(next)}`;
135 return redirect(target);
136}
137
138function nonce(): string {
139 const bytes = crypto.getRandomValues(new Uint8Array(16));

Callers 1

fetchFunction · 0.85

Calls 1

redirectFunction · 0.85

Tested by

no test coverage detected