Skip to content

fix(auth): handle missing device auth codes - #6027

Open
pandemicsyn wants to merge 1 commit into
mainfrom
kilo/wandering-vale-ih6
Open

fix(auth): handle missing device auth codes#6027
pandemicsyn wants to merge 1 commit into
mainfrom
kilo/wandering-vale-ih6

Conversation

@pandemicsyn

Copy link
Copy Markdown
Contributor

Summary

  • Treat missing, empty, and whitespace-only device auth codes as invalid input.
  • Redirect malformed device-auth links before performing authentication lookup.
  • Add regression coverage for the malformed-link cases.

Testing

  • Isolated Jest regression test: 3 passed.
  • Focused Oxlint: 0 warnings, 0 errors.
  • Formatting and whitespace checks passed.
  • Full web typecheck was attempted but exceeded the local two-minute execution limit.

Related

  • Sentry: KILOCODE-WEB-27P8

Refine the `code` parameter preprocessing to handle whitespace trimming
and ensure robust type checking. Added a redirect check for missing
codes and simplified the callback path construction.

Added unit tests for the device authentication page to ensure correct
parameter handling and redirection logic.

Co-authored-by: kiloconnect[bot] <240665456+kiloconnect[bot]@users.noreply.github.com>
@kilo-code-bot

kilo-code-bot Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (2 files)
  • apps/web/src/app/device-auth/page.tsx
  • apps/web/src/app/device-auth/page.test.ts

Reviewed by grok-4.6 · Input: 34K · Output: 7.1K · Cached: 184.2K

Review guidance: REVIEW.md from base branch main

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant