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: add OTP authentication capabilities to RN Signer #1231

Merged
merged 4 commits into from
Dec 18, 2024

Conversation

iykazrji
Copy link
Collaborator

@iykazrji iykazrji commented Dec 17, 2024

Pull Request Checklist


PR-Codex overview

This PR focuses on enhancing the navigation structure and authentication process in the rn-signer example. It introduces a singleton pattern for the RNAlchemySigner and updates the navigation to use bottom tabs, along with modifications to the authentication flow.

Detailed summary

  • Added @react-navigation/bottom-tabs dependency.
  • Changed redirection URL in redirect-server/index.ts.
  • Refactored RNAlchemySigner to RNAlchemySignerSingleton for singleton implementation.
  • Updated navigation in App.tsx to use createBottomTabNavigator.
  • Created MagicLinkAuthScreen and OtpAuthScreen for authentication.
  • Modified HomeScreen to MagicLinkAuthScreen.
  • Enhanced OTP authentication flow in otp-auth.tsx.

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

Screenshots

Uploading screen-20241217-170256.mp4…

Copy link

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

Copy link
Collaborator Author


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.

@iykazrji iykazrji marked this pull request as ready for review December 17, 2024 22:01
useEffect(() => {
// get the user if already logged in
signer.getAuthDetails().then(setUser);
}, []);
Copy link
Collaborator

Choose a reason for hiding this comment

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

⚠️ [eslint] <react-hooks/exhaustive-deps> reported by reviewdog 🐶
React Hook useEffect has a missing dependency: 'signer'. Either include it or remove the dependency array.

@iykazrji iykazrji merged commit 6ebfca5 into main Dec 18, 2024
7 checks passed
@iykazrji iykazrji deleted the iyk/implement-otp-rn branch December 18, 2024 16:17
linnall pushed a commit that referenced this pull request Dec 20, 2024
* feat: add OTP authentication capabilities to RN Signer

* fix: update redirect route path

* fix: fix linting
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