Skip to content

Conversation

@ElasticBottle
Copy link
Contributor

@ElasticBottle ElasticBottle commented Oct 9, 2024

…et url

Problem solved

Short description of the bug fixed or feature added


PR-Codex overview

This PR focuses on enhancing the authentication logic in the thirdweb dashboard by allowing account linking and preventing the use of auth tokens in specific URLs.

Detailed summary

  • Updated the condition for using the authToken in fetch.ts to include a check for isInAppWalletUrl.
  • Introduced a new function isInAppWalletUrl to identify URLs related to in-app wallets based on their hostname.

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

@changeset-bot
Copy link

changeset-bot bot commented Oct 9, 2024

🦋 Changeset detected

Latest commit: 6a4b776

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
thirdweb Patch

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

@vercel
Copy link

vercel bot commented Oct 9, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 9, 2024 6:40pm
thirdweb_playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 9, 2024 6:40pm
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 9, 2024 6:40pm
wallet-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 9, 2024 6:40pm

@graphite-app
Copy link
Contributor

graphite-app bot commented Oct 9, 2024

Your org has enabled the Graphite merge queue for merging into main

Add 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.

@gregfromstl gregfromstl added the merge-queue Adds the pull request to Graphite's merge queue. label Oct 9, 2024
Copy link
Contributor

gregfromstl commented Oct 9, 2024

Merge activity

  • Oct 9, 2:10 PM EDT: The merge label 'merge-queue' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Oct 9, 2:30 PM EDT: A user added this pull request to the Graphite merge queue.
  • Oct 9, 2:40 PM EDT: A user merged this pull request with the Graphite merge queue.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 9, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 42.07 KB (-0.07% 🔽) 842 ms (-0.07% 🔽) 1.4 s (-5.51% 🔽) 2.3 s
thirdweb (cjs) 101.66 KB (-0.07% 🔽) 2.1 s (-0.07% 🔽) 3.5 s (+26.11% 🔺) 5.5 s
thirdweb (minimal + tree-shaking) 4.84 KB (+0.53% 🔺) 97 ms (+0.53% 🔺) 68 ms (-8.26% 🔽) 164 ms
thirdweb/chains (tree-shaking) 498 B (0%) 10 ms (0%) 48 ms (+150.24% 🔺) 58 ms
thirdweb/react (minimal + tree-shaking) 17.24 KB (+0.07% 🔺) 345 ms (+0.07% 🔺) 309 ms (+21.58% 🔺) 654 ms

@codecov
Copy link

codecov bot commented Oct 9, 2024

Codecov Report

Attention: Patch coverage is 72.72727% with 3 lines in your changes missing coverage. Please review.

Project coverage is 47.67%. Comparing base (e29d80a) to head (6a4b776).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
packages/thirdweb/src/utils/fetch.ts 72.72% 3 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4974   +/-   ##
=======================================
  Coverage   47.66%   47.67%           
=======================================
  Files        1057     1057           
  Lines       57267    57277   +10     
  Branches     3939     3940    +1     
=======================================
+ Hits        27299    27307    +8     
- Misses      29277    29279    +2     
  Partials      691      691           
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from e29d80a
packages 43.45% <72.72%> (+<0.01%) ⬆️

*This pull request uses carry forward flags. Click here to find out more.

Files with missing lines Coverage Δ
packages/thirdweb/src/utils/fetch.ts 82.78% <72.72%> (-0.91%) ⬇️

... and 1 file with indirect coverage changes

#4974)

…et url

## Problem solved

Short description of the bug fixed or feature added

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on enhancing the `thirdweb` dashboard by allowing account linking and improving the authorization logic in the `fetch.ts` file.

### Detailed summary
- Updated the authorization check in `fetch.ts` to exclude URLs from in-app wallets when sending the `authToken`.
- Introduced a new function `isInAppWalletUrl(url: string): boolean` to determine if a URL is from an in-app or embedded wallet.

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

<!-- end pr-codex -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-queue Adds the pull request to Graphite's merge queue. packages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants