We couldn't sign you in
-${this.escapeHtml(message)}
-Close this tab and try again from your terminal.
-diff --git a/src/api/auth.ts b/src/api/auth.ts index af5ebd5..6ef9e3e 100644 --- a/src/api/auth.ts +++ b/src/api/auth.ts @@ -237,100 +237,102 @@ export class Auth { .replace(/'/g, "'"); } - private authErrorResponse(message: string): Response { - const html = ` + // The Enkryptify wordmark logo. The mark keeps the brand blue (#2B7FFF) and + // the wordmark uses the app foreground (#f5f5f5) so it matches the dashboard. + private logoSvg(): string { + return ``; + } + + // Shared page chrome for the browser-facing success/error states. Mirrors + // the app's /oauth/authorize screen: dark brutalist theme, Source Sans 3 / + // JetBrains Mono, centered logo above an animated state icon and two lines + // of copy. Inline HTML/CSS only — no React, no build step. + private renderAuthPage(params: { + state: "success" | "error"; + documentTitle: string; + title: string; + subtitle: string; + hint: string; + autoClose?: boolean; + }): string { + const { state, documentTitle, title, subtitle, hint, autoClose } = params; + + const icon = + state === "success" + ? `` + : ``; + + const autoCloseScript = autoClose ? `` : ""; + + return `
-${this.escapeHtml(message)}
-Close this tab and try again from your terminal.
-${subtitle}
${hint}
Signed in to Enkryptify. Head back to your terminal.
-This tab will close automatically.
-