Skip to content

feat: add passkey support to rn-signer #1598

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

moldy530
Copy link
Collaborator

@moldy530 moldy530 commented May 6, 2025

Pull Request Checklist


PR-Codex overview

This PR introduces the react-native-passkey library to enhance account creation and authentication processes in the RNSignerClient class, integrating passkey functionality and updating dependencies accordingly.

Detailed summary

  • Added react-native-passkey dependency in package.json.
  • Introduced @turnkey/react-native-passkey-stamper dependency.
  • Updated RNSignerClient to handle passkey authentication.
  • Implemented createPasskey and PasskeyStamper for passkey management.
  • Modified account creation flow to support passkeys.
  • Enhanced user lookup with passkey functionality.
  • Added generateRandomBuffer utility for challenge generation.

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

Copy link

vercel bot commented May 6, 2025

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 May 6, 2025 7:57pm
aa-sdk-ui-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 6, 2025 7:57pm

Copy link
Collaborator Author

moldy530 commented May 6, 2025


How to use the Graphite Merge Queue

Add the label graphite-merge-queue to this PR to add it to the merge queue.

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

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

Copy link

github-actions bot commented May 6, 2025

🌿 Documentation Preview

Name Status Preview Updated (UTC)
Alchemy Docs ✅ Ready 🔗 Visit Preview May 6, 2025, 7:52 PM

Comment on lines +79 to +83
this.webauthnStamper = new PasskeyStamper({
rpId: rp?.id ?? "localhost",
});
this.rpId = rp?.id ?? "localhost";
this.rpName = rp?.name ?? "localhost";
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

if we don't get the rp config I think we actually need to not setup the stamper, and then below we need to throw if there's no config for the stamper

@moldy530
Copy link
Collaborator Author

moldy530 commented May 6, 2025

Still needs to be tested, but to set it up a dev has to do this: https://github.com/f-23/react-native-passkey?tab=readme-ov-file#configuration

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