Skip to content

[codex] Handle missing CLI auth code tokens#710

Merged
jahooma merged 1 commit into
mainfrom
jahooma/fix-freebuff-auth-code-warnings
May 20, 2026
Merged

[codex] Handle missing CLI auth code tokens#710
jahooma merged 1 commit into
mainfrom
jahooma/fix-freebuff-auth-code-warnings

Conversation

@brandonkachen
Copy link
Copy Markdown
Collaborator

Summary

Missing opaque CLI login tokens now stop before signed auth-code validation and render a stale-link response instead of the generic invalid-auth-code path.

Why

Freebuff occasionally logs Invalid Freebuff CLI auth code for 43-character opaque login tokens whose token lookup returns missing. Those tokens are not signed auth-code payloads, so parsing them as signed codes produces empty fields and a misleading warning/user message.

Changes

  • Add an explicit missing auth-code resolution branch in Freebuff onboarding.
  • Log missing Freebuff opaque tokens at info for correlation without treating them as invalid signed codes.
  • Add matching stale-link handling to the Codebuff onboarding page.

Validation

  • bun --cwd freebuff/web typecheck
  • bun --cwd web typecheck
  • bunx prettier --write freebuff/web/src/app/onboard/page.tsx web/src/app/onboard/page.tsx
  • git diff --check

@jahooma jahooma merged commit 3e43884 into main May 20, 2026
35 checks passed
@jahooma jahooma deleted the jahooma/fix-freebuff-auth-code-warnings branch May 20, 2026 18:19
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.

2 participants