Skip to content

Use opaque CLI auth tokens#627

Merged
jahooma merged 1 commit intomainfrom
jahooma/opaque-cli-auth-tokens
May 8, 2026
Merged

Use opaque CLI auth tokens#627
jahooma merged 1 commit intomainfrom
jahooma/opaque-cli-auth-tokens

Conversation

@jahooma
Copy link
Copy Markdown
Contributor

@jahooma jahooma commented May 8, 2026

Changes CLI login URLs to carry a short opaque auth token instead of the full fingerprint/expiry/hash payload.
The full signed auth payload is stored for one hour in the existing verificationToken table and resolved by /onboard before the existing hash and expiry validation, while old full auth_code URLs remain supported.
This directly addresses production reports where Freebuff receives 43-character auth_code values.

Validation: bun test web/src/app/onboard/tests/helpers.test.ts freebuff/web/src/app/onboard/tests/helpers.test.ts web/src/app/api/auth/cli/code/tests/_origin.test.ts freebuff/web/src/app/api/auth/cli/code/tests/_origin.test.ts; bun run typecheck in web and freebuff/web; git diff --check.

@jahooma jahooma merged commit 2e7ad9e into main May 8, 2026
35 checks passed
@jahooma jahooma deleted the jahooma/opaque-cli-auth-tokens branch May 8, 2026 23: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.

1 participant