Skip to content

Support X, Discord, and email sign-in on /quick - #3

Merged
iconidentify merged 1 commit into
mainfrom
feat/quick-multi-auth
Jun 1, 2026
Merged

iconidentify merged 1 commit into
mainfrom
feat/quick-multi-auth

Conversation

@iconidentify

Copy link
Copy Markdown
Owner

What

The /quick sign-in was X-only. It now offers every enabled login method so it's not exclusive.

  • Login pill opens an auth card listing methods from /api/auth/providers (xEnabled / discordEnabled / emailEnabled)
  • X and Discord: popup + cookie-poll OAuth (/api/auth/{provider}/login), full-page redirect fallback if popups are blocked
  • Email: magic link via POST /api/auth/email/login, then polls for the cookie the link sets when clicked in the same browser ("Check your email" state)
  • Discord/email buttons render only when the server reports them enabled
  • Mobile parity preserved (bottom sheet, full-width buttons, safe-area)

Notes

  • Reuses existing endpoints; no backend change.
  • Served at /quick; landing at / unchanged.
  • JS validated with node --check.

🤖 Generated with Claude Code

The /quick login pill now opens an auth card offering every enabled
method instead of going straight to X. Providers are read from
/api/auth/providers; X and Discord use the popup + cookie-poll OAuth
flow, and email sends a magic link (POST /api/auth/email/login) then
polls for the cookie the link sets when clicked in the same browser.
Discord and email buttons only appear when the server reports them
enabled. Mobile parity preserved (bottom sheet, full-width controls).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@iconidentify
iconidentify merged commit 6ecf9b3 into main Jun 1, 2026
1 check passed
@iconidentify
iconidentify deleted the feat/quick-multi-auth branch June 1, 2026 00:36
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