Skip to content

Comments

feat: add social login support and noop screen type#7

Open
RichardHruby wants to merge 1 commit intomainfrom
richard/feat-social-logins
Open

feat: add social login support and noop screen type#7
RichardHruby wants to merge 1 commit intomainfrom
richard/feat-social-logins

Conversation

@RichardHruby
Copy link
Owner

Summary

Adds support for social/SSO login buttons (Google, Apple, Microsoft, GitHub, etc.) and a new noop_screen type for external authentication flows where no browser interaction is needed.

  • Social login buttons detected alongside credential forms via new socialLogins schema field
  • LLM prompt updated to extract social providers instead of excluding them
  • Social buttons render below the credential form with an "or" divider
  • Clicking a social button triggers the OAuth redirect, then the existing page-analysis loop handles the provider's login flow naturally
  • Pages with ONLY social buttons (no credential form) classify as choice_screen
  • New noop_screen type for "tap the number on your phone" flows — shows instruction text with a Continue button, no browser action needed
  • Collapsed form label now correctly shows the social provider name instead of field names

Changes

File What
types.ts SocialLoginOption schema, socialLogins field, noop_screen type
prompts.ts Social login detection instructions, noop screen rules
agent.ts Social login click handler, noop handler, locator validation for social buttons
credential-form.tsx Social buttons below form with "or" divider
message-bubble.tsx Wire social props, noop screen UI, collapsed form label fix
use-login-session.ts formSubmitLabels tracking, noop screen as user-input type
route.ts noop_screen added to user-action SSE path

Test plan

  • Site with social + credential form shows social buttons below the form
  • Clicking social button triggers OAuth redirect and page re-analysis
  • Collapsed form shows provider name (e.g. "Continue with Google submitted")
  • Social-only pages classify as choice_screen
  • Normal credential flow unchanged
  • Noop screen shows instruction text + Continue button
  • npx tsc --noEmit passes

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Feb 18, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
login-machine Ready Ready Preview, Comment Feb 18, 2026 4:35am

Request Review

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