Use Crossmint SDK authorization throughout approval flows - #1
Closed
manu-xmint wants to merge 9 commits into
Closed
manu-xmint wants to merge 9 commits into
manu-xmint wants to merge 9 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…commerce-sdk # Conflicts: # apps/web/next.config.ts # apps/web/package.json # packages/ui/package.json # pnpm-lock.yaml
Collaborator
|
Thanks, Manu. We are launching this repo publicly, so we replaced the history with one clean initial commit. This PR is based on the old history and cannot merge now, so I am closing it. Your branch stays. If you still need these changes, open a new PR from the new main. |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Change
Approval screens previously created and verified agent cards through a custom application flow. They now mount
AuthorizeAgentCard, backed by Crossmint SDK 4.8.0, across desktop, mobile, messaging, approval links and checkout approval. The SDK handles card selection, registration, order-intent creation, CVC and verification.The new
/agent-card-requests/:id/authorizedendpoint accepts the resulting order-intent ID and validates it with a buyer-JWT-scoped Crossmint read before associating it. Atomic transitions protect against duplicate callbacks and concurrent denial; retries reuse the same ID. The old/approveand/verifiedendpoints are removed.New authorization requests require explicit merchant details. Chat, MCP, CLI and checkout persistence carry those details. Existing cards can still fund checkouts. Crossmint remains configured for production with the existing Stytch test session.
Compatibility and setup
0005_sdk_authorization_merchant.sqlwhen using PostgreSQL. The migration was generated but not applied to any external database; the local evaluation uses memory storage.RequestStoreimplementations must implement the new atomictransitionmethod.Validation and QA
/appreturns HTTP 200; the unauthenticated browser smoke check had no console warnings/errors.Keep this PR in draft for component evaluation. The owner will merge it.