feat: port of https://github.com/storacha/upload-service/commit/2c12c23d13d14e9f1b79c34b8169f20975d431f7 #1641
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Ports over the upload api changes in the above commit to upload service
-- original commit message
feat: add
app
toaccess/authorize
andaccess/confirm
(#264) (We need a way to ensure users are redirected back to
https://bsky.storage
after completing the Stripe checkout process.To facilitate this, pass facts from
access/authorize
toaccess/confirm
- users can now add a fact like{app: 'bsky-backups'}
toaccess/authorize
, which will tell theaccess/confirm
handling code inw3infra
to render the same pricing table we use on https://bsky.storage which sends the user back to that app after picking a plan via the email flow.Add support for this to the client code via a new
appName
option in the account creation functions that gets converted to a fact at the lowest level.There are a bunch of ways we could do this, but in the interest of shipping ASAP I think this is a reasonable and fast way to go.
See storacha/w3infra#472 for the other part of this.