Skip to content

Drop invalid Freebuff login auth codes#664

Merged
jahooma merged 1 commit into
mainfrom
jahooma/drop-invalid-freebuff-auth-codes
May 13, 2026
Merged

Drop invalid Freebuff login auth codes#664
jahooma merged 1 commit into
mainfrom
jahooma/drop-invalid-freebuff-auth-codes

Conversation

@jahooma
Copy link
Copy Markdown
Contributor

@jahooma jahooma commented May 12, 2026

Summary

Stops malformed auth_code query params from being treated as Freebuff CLI login attempts.
Invalid codes still emit the diagnostic logs added previously, but /login now passes only supported CLI auth-code shapes into the login card, the client sign-in button only preserves valid CLI codes, and the NextAuth redirect callback returns to the app root instead of forwarding malformed codes to /onboard.
Moves the auth-code shape parser into a client-safe helper so server and client routing use the same predicate.

Tests

  • bun test freebuff/web/src/app/onboard/__tests__/helpers.test.ts
  • bun run typecheck in freebuff/web

@jahooma jahooma force-pushed the jahooma/drop-invalid-freebuff-auth-codes branch from a68180a to 5aaa700 Compare May 12, 2026 23:34
@jahooma jahooma merged commit b5e8086 into main May 13, 2026
35 checks passed
@jahooma jahooma deleted the jahooma/drop-invalid-freebuff-auth-codes branch May 13, 2026 00:10
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