MCPcopy
hub / github.com/codeaashu/claude-code / loadLoginPage

Method loadLoginPage

src/server/web/auth/apikey-auth.ts:126–134  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

124 // ── Internals ─────────────────────────────────────────────────────────────
125
126 private loadLoginPage(): string {
127 // Serve from the public directory at build time; fall back to inline HTML.
128 try {
129 const p = join(import.meta.dirname, "../public/login.html");
130 return readFileSync(p, "utf8");
131 } catch {
132 return INLINE_LOGIN_HTML;
133 }
134 }
135}
136
137/**

Callers 1

setupRoutesMethod · 0.95

Calls 1

readFileSyncFunction · 0.90

Tested by

no test coverage detected