Skip to content

Log invalid Freebuff login auth codes#662

Merged
jahooma merged 2 commits into
mainfrom
jahooma/create-pr
May 12, 2026
Merged

Log invalid Freebuff login auth codes#662
jahooma merged 2 commits into
mainfrom
jahooma/create-pr

Conversation

@jahooma
Copy link
Copy Markdown
Contributor

@jahooma jahooma commented May 12, 2026

Summary

Adds an early Freebuff login warning when auth_code is present but does not match any supported CLI auth-code shape.
The log captures request source headers, UTM/referrer parameters, token shape metadata, and a hash prefix so we can identify where malformed /login?auth_code=... links originate without logging raw codes.
Adds a shared isCliAuthCodeCandidate helper and tests for current opaque tokens, legacy signed codes, UUID-shaped junk, and short random-looking tokens.

Tests

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

@jahooma jahooma merged commit 61db07c into main May 12, 2026
35 checks passed
@jahooma jahooma deleted the jahooma/create-pr branch May 12, 2026 21:21
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