-
Notifications
You must be signed in to change notification settings - Fork 619
Force auth token usage for storage uploads #6973
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
How to use the Graphite Merge QueueAdd either label to this PR to merge it via 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. |
7f154e2 to
7dc84d3
Compare
size-limit report 📦
|
7dc84d3 to
e19dd76
Compare

TL;DR
Added support for forcing auth token usage in storage uploads.
What changed?
useAuthToken: trueflag to the storage upload request to ensure authentication tokens are always used for storage uploadsfetchWithHeadersfunction to accept a newuseAuthTokenparameter in its optionsHow to test?
Why make this change?
This change ensures that storage uploads always use authentication tokens, which is necessary for proper access control and attribution of uploaded content. Previously, there was no way to force auth token usage specifically for storage operations, which could lead to authentication issues in certain scenarios.
PR-Codex overview
This PR introduces a new feature to enforce the use of an authentication token for storage uploads in the
fetchWithHeadersfunction, modifying how the token is handled based on theuseAuthTokenflag.Detailed summary
useAuthTokenoption tofetchWithHeadersparameters.useAuthTokenis true.useAuthTokenis true or false.