Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: oauth add passkey after signup (popup flow) #1151

Open
wants to merge 46 commits into
base: main
Choose a base branch
from

Conversation

linnall
Copy link
Collaborator

@linnall linnall commented Nov 13, 2024

Pull Request Checklist


PR-Codex overview

This PR introduces a new user signup event in the AlchemySigner and updates various components to handle this event, alongside some refactoring in the useAuthModal and related hooks.

Detailed summary

  • Added newUserSignup event to AlchemySignerClientEvents.
  • Emitted newUserSignup on successful user signup in AlchemySignerWebClient.
  • Refactored closeAuthModal in useAuthModal to improve readability.
  • Updated CompletingOAuth to simplify auth step setting.
  • Adjusted AuthModal to handle signup logic with useNewUserSignup.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

linnall and others added 30 commits October 30, 2024 16:45
Co-authored-by: Michael Moldoveanu <michael.moldoveanu@alchemy.com>
Copy link

vercel bot commented Nov 13, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
aa-sdk-site ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 14, 2024 11:23pm
aa-sdk-ui-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 14, 2024 11:23pm

Copy link

graphite-app bot commented Nov 13, 2024

Your org has enabled the Graphite merge queue for merging into main

Add the label “graphite-merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge.

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

Copy link
Collaborator

@moldy530 moldy530 left a comment

Choose a reason for hiding this comment

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

do we need to update the ui-demo app to default back to using pop-up now?

account-kit/signer/src/client/types.ts Outdated Show resolved Hide resolved

useNewUserSignup(handleSignup, isConnected);
Copy link
Collaborator

Choose a reason for hiding this comment

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

this solves a race condition where an on success handler would set the step to complete and close the modal that was just opened. This makes sure that all handlers complete we're done with the setup flow prior to add passkey

Co-authored-by: Michael Moldoveanu <michael.moldoveanu@alchemy.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