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: handle passkey signup oauth #1139

Closed
wants to merge 17 commits into from
Closed

feat: handle passkey signup oauth #1139

wants to merge 17 commits into from

Conversation

moldy530
Copy link
Collaborator

@moldy530 moldy530 commented Nov 8, 2024

  • chore: local dev changes updated
  • chore: wip oauth redirect with add passkey after signup
  • chore: wip

Pull Request Checklist


PR-Codex overview

This PR focuses on enhancing user signup experiences by integrating new user handling and modifying authentication flows, particularly around social logins and passkey creation.

Detailed summary

  • Added createPasskeyAfter option in context.ts.
  • Changed social login mode from popup to redirect in sections.ts.
  • Implemented newUserSignup event in types.ts and base.ts.
  • Introduced usePrevious hook in usePrevious.ts.
  • Updated OAuth handling to log clientId in index.ts.
  • Created useNewUserSignupEffect in useNewUserSignup.ts for signup handling.
  • Set oauthCallbackUrl in config.tsx.
  • Modified AuthModal to handle new user signup and passkey creation.
  • Adjusted CompletingOAuth to check for createPasskeyAfter.
  • Enhanced AuthParams to include isNewUser in signer.ts.
  • Updated AuthCardContent to manage authentication state and disconnect logic based on user connection status.

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

Copy link

vercel bot commented Nov 8, 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 8, 2024 7:36pm
aa-sdk-ui-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 8, 2024 7:36pm

Copy link

graphite-app bot commented Nov 8, 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.

@moldy530 moldy530 marked this pull request as draft November 8, 2024 16:57
@@ -128,6 +136,8 @@ export class AlchemyWebSigner extends BaseAlchemySigner<AlchemySignerWebClient>

super({ client, sessionConfig, initialError });

this.isSignup = _isSignup === "true" ? true : false;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

we'll come back this, but we will want to propagate signup up via one of the status events

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