-
Notifications
You must be signed in to change notification settings - Fork 627
[SDK] Fix: Type wallet doesn't exists in getUser
#5593
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
[SDK] Fix: Type wallet doesn't exists in getUser
#5593
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
🦋 Changeset detectedLatest commit: 68ad62f 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. |
size-limit report 📦
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5593 +/- ##
==========================================
+ Coverage 44.19% 44.29% +0.10%
==========================================
Files 1082 1082
Lines 56253 56258 +5
Branches 3974 3990 +16
==========================================
+ Hits 24862 24921 +59
+ Misses 30708 30654 -54
Partials 683 683
*This pull request uses carry forward flags. Click here to find out more.
|
wallet doesn't exists in getUserwallet doesn't exists in getUser
Merge activity
|
https://linear.app/thirdweb/issue/CNCT-2523/remapping-of-siwe-wallet-type-in-typescript-sdk <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on updating the `getUser` function in the `Profiles` to align with TypeScript types and enhancing the test suite for `getUser` to cover various scenarios, including error handling and different query parameters. ### Detailed summary - Updated `type` in `getUser` to ensure it matches TypeScript types. - Enhanced `profiles` mapping to correctly categorize profile types. - Added tests for error scenarios when no secret key or query parameter is provided. - Implemented tests for fetching user data by email, phone, ID, and external wallet address. - Added handling for fetch errors and cases where no user is found. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
a6d9c14 to
8c0607c
Compare
https://linear.app/thirdweb/issue/CNCT-2523/remapping-of-siwe-wallet-type-in-typescript-sdk <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on updating the `getUser` function in the `Profiles` to align with TypeScript types and enhancing its test coverage. ### Detailed summary - Updated the `type` in `getUser` to correctly classify profile types as either "wallet" or their original type. - Added unit tests to handle various scenarios: missing secret key, missing query parameters, and handling fetch errors. - Verified correct API URL calls for different query parameters (email, phone, id, externalWalletAddress). - Included tests for fetching user profiles and handling cases where no user is found. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
8c0607c to
68ad62f
Compare
https://linear.app/thirdweb/issue/CNCT-2523/remapping-of-siwe-wallet-type-in-typescript-sdk
PR-Codex overview
This PR focuses on updating the
getUserfunction in theProfilesto align with TypeScript types, enhancing error handling, and adding tests for various user query scenarios.Detailed summary
typeingetUserto ensure it matches TypeScript types.profilesmapping to correctly set thetypebased on conditions.getUsercovering error cases and various query parameters (email, phone, id, externalWalletAddress).