-
Notifications
You must be signed in to change notification settings - Fork 318
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
Refactor linkProfile and getProfiles API + prepare for ecosystemWallet in React Native #4755
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
🦋 Changeset detectedLatest commit: e02d87b The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Your org has enabled the Graphite merge queue for merging into mainAdd the label “merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix. You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link. |
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @joaquim-verges and the rest of your teammates on Graphite |
size-limit report 📦
|
e7c2d30
to
f292a8d
Compare
packages/thirdweb/src/react/native/hooks/wallets/useProfiles.ts
Outdated
Show resolved
Hide resolved
Merge activity
|
…t in React Native (#4755) ## Problem solved Short description of the bug fixed or feature added <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on refactoring the wallet's profile management system, enhancing the `linkProfile` and `getProfiles` functionalities. It also updates the import paths and improves the organization of wallet-related hooks and types. ### Detailed summary - Deleted `useAdminAccount.ts` and updated references to `useAdminWallet.ts`. - Refactored `linkProfile` and `getProfiles` APIs for improved functionality. - Updated import paths for `Ecosystem` type across multiple files. - Consolidated wallet profiles logic in `useProfiles` hook. - Enhanced error handling and type definitions in wallet connectors. - Added `linkProfile` and `getProfiles` methods to `InAppNativeConnector` and `InAppWebConnector`. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
cb0b69e
to
e02d87b
Compare
Problem solved
Short description of the bug fixed or feature added
PR-Codex overview
This PR focuses on refactoring the wallet integration for the
thirdweb
library, specifically improving the handling of user profiles and wallet authentication methods. It updates the structure of API calls and enhances the organization of wallet-related functionalities.Detailed summary
useAdminAccount.ts
and its references.linkProfile
andgetProfiles
functionality toweb/lib/auth/index.js
andnative/auth/index.js
.Ecosystem
import paths to a unified structure.ClientScopedStorage
for local storage management.useProfiles
hook to accept client arguments.