diff --git a/src/services/auth-service.ts b/src/services/auth-service.ts index 8a04e5c9..6a7eb57a 100644 --- a/src/services/auth-service.ts +++ b/src/services/auth-service.ts @@ -370,43 +370,121 @@ function parseRefreshTokenResponse(data: unknown): RefreshTokenResponse { function successHtml(title = "Authentication successful"): string { return ` -GitHits CLI + +GitHits CLI + + + + -
-

${escapeHtml(title)}

-

You can close this window and return to the terminal.

+
+ +
+

${escapeHtml(title)}

+

You can close this window and return to the terminal.

+
+ + + GitHits + + + + + + + + + + + +

TIP: Run npx githits --help to discover what else you can do.

`; } @@ -463,44 +541,121 @@ export function evaluateCallback( function errorHtml(error: string, nextStep?: string): string { const nextStepHtml = nextStep ? `

${escapeHtml(nextStep)}

` : ""; return ` -GitHits CLI + +GitHits CLI + + + + -
-

Authentication failed

-

${escapeHtml(error)}

+
+ + +
+

Authentication failed

+

${escapeHtml(error)}

+
+ ${nextStepHtml} + + + GitHits + + + + + + + + + + + +
`; }