-
Notifications
You must be signed in to change notification settings - Fork 619
docs: update fetching user details endpoint for ecosystems #4918
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
docs: update fetching user details endpoint for ecosystems #4918
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
🦋 Changeset detectedLatest commit: 0f6b881 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. |
| - `walletAddress`: The user's wallet address that thirdweb has generated for them | ||
| - `email`: The user's email address | ||
| - `phone`: The user's phone number | ||
| - `extenalWalletAddress`: The user's wallet address that used to login via SIWE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The parameter extenalWalletAddress contains a typo. It should be corrected to externalWalletAddress for accuracy and consistency. This change will ensure that users can properly reference this parameter when querying user details for those who have logged in via SIWE.
Spotted by Graphite Reviewer
Is this helpful? React 👍 or 👎 to let us know.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4918 +/- ##
==========================================
- Coverage 47.61% 47.60% -0.02%
==========================================
Files 1057 1057
Lines 57224 57228 +4
Branches 3924 3923 -1
==========================================
- Hits 27247 27241 -6
- Misses 29288 29298 +10
Partials 689 689
*This pull request uses carry forward flags. Click here to find out more.
|
joaquim-verges
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wanna update the SDK function as well?
size-limit report 📦
|
| ...(ecosystem?.id ? { "x-ecosystem-id": ecosystem.id } : {}), | ||
| ...(ecosystem?.partnerId | ||
| ? { "x-ecosystem-partner-id": ecosystem.partnerId } | ||
| : {}), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you dont need to do this! just pass ecosystem to getClientFetch :)
actually just did it in my other PR, though i didn't add externalWalletAddress support. just merge my change and you'll get the headers for free
Merge activity
|
## Problem solved
Short description of the bug fixed or feature added
<!-- start pr-codex -->
---
## PR-Codex overview
This PR focuses on enhancing the `getUser` functionality in the `thirdweb` SDK by adding support for querying user details via an external wallet address and ecosystem wallet details.
### Detailed summary
- Added functionality to query user details using `externalWalletAddress`.
- Updated documentation for `getUser` to reflect new parameters.
- Modified examples to include querying by `externalWalletAddress`.
- Enhanced user guide to include new querying options.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
156cc11 to
77d0c13
Compare
## Problem solved
Short description of the bug fixed or feature added
<!-- start pr-codex -->
---
## PR-Codex overview
This PR focuses on enhancing the `getUser` functionality in the `thirdweb` SDK by adding support for querying user details via an external wallet address and ecosystem identifiers.
### Detailed summary
- Added support for querying user details using `externalWalletAddress` in `getUser`.
- Updated documentation for `getUser` to include `externalWalletAddress` as a query parameter.
- Modified examples in the documentation to demonstrate querying with `externalWalletAddress`.
- Updated user detail query parameters in documentation to reflect new options.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
77d0c13 to
0f6b881
Compare
Problem solved
Short description of the bug fixed or feature added
PR-Codex overview
This PR focuses on enhancing the
getUserfunction from thethirdwebSDK to support querying user details by external wallet address and adding documentation updates to reflect these changes.Detailed summary
externalWalletAddress.getUserfunction parameters to includeexternalWalletAddress.externalWalletAddress.