Skip to content

Passwordless sign-in page: email code, Google and Apple - #5

Merged
almas-alright merged 6 commits into
mainfrom
login-implementation
Oct 27, 2026
Merged

almas-alright merged 6 commits into
mainfrom
login-implementation

Conversation

@almas-alright

Copy link
Copy Markdown
Contributor

What

The sign-in page (/connect) now offers three choices, styled after OpenAI's sign-in: Continue with email (then a "Check your inbox" code step, or the link in the email), Google and Apple, through the API's /v1/auth/* routes.

API side: LyricScripts/ScribbleScan#5.

How

  • oidc.begin() makes the PKCE verifier and keeps it in localStorage, so the emailed link also works in a new tab; the API only sees the challenge.
  • The app shell hands the provider's /?code= return to /connect; it was lost on the redirect before.
  • login_methods from /v1/config decides which buttons work. Empty with oidc falls back to Zitadel's hosted pages; dev mode signs in from the email step without a code.
  • openapi.json gets the sign-in routes (merged in, keeping /v1/notifications) and the generated types are refreshed.

Tested

  • typecheck, vitest (31), build, biome on the changed files.
  • In a browser against the API and a real Zitadel: new and returning users, the emailed link in a new tab, phone width, and dev mode.

🤖 Generated with Claude Code

mohaakash and others added 2 commits October 25, 2026 11:31
Replaces the email/phone/Microsoft draft with three choices, styled after
OpenAI's sign-in: Continue with email (then a "Check your inbox" code step,
or the link in the email), Google and Apple, through the API's /v1/auth/*
routes.

- oidc.begin() makes the PKCE verifier and keeps it in localStorage, so the
  emailed link also works in a new tab; the API only sees the challenge.
- The app shell hands the provider's /?code= return to /connect, which was
  lost on the redirect before.
- login_methods from /v1/config decides which buttons work; empty with oidc
  falls back to Zitadel's hosted pages, and dev mode signs in from the email
  step without a code.
- openapi.json gets the new sign-in routes (merged in, keeping
  /v1/notifications) and the generated types are refreshed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 49e4b4be-a856-47f6-9224-c0615cb174a0
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-27T05:30:55.877829Z 394c1f7 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 394c1f7a96

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread app/connect/page.tsx
With passwordless sign-in on and login_methods lacking "email" (say only
Google is set up), the email button now shows as unavailable and explains,
instead of opening a step whose request the server would refuse.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
almas-alright and others added 3 commits October 27, 2026 15:37
Main's Biome cleanup (#6) reformatted the old sign-in page and made its
destination a stable callback; this branch replaces that page entirely
(and already has the stable callback), so its version is kept and
formatted. The app shell's ?code= hand-off and the heading focus rule
merged cleanly.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CI now runs the lint after the build (#4), so Biome was checking the
generated .next folder: 15,411 findings, all in build output.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 6ded0c6)
@almas-alright
almas-alright merged commit e593530 into main Oct 27, 2026
2 checks passed
@almas-alright
almas-alright deleted the login-implementation branch October 27, 2026 09:54
almas-alright added a commit that referenced this pull request Oct 27, 2026
Main brought passwordless sign-in (#5). openapi.json keeps this branch's
copy, the API's full contract, which already has the sign-in routes; the
generated types are regenerated from it. CLAUDE.md keeps both new
paragraphs (sign-in, plans).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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