fix: sync current x401 wire names#7
Merged
Conversation
frostevent
reviewed
Jun 29, 2026
frostevent
left a comment
Collaborator
There was a problem hiding this comment.
Thank you for your contribution 👍
I'm wondering, if you used AI to help you put up this PR, did it leverage https://github.com/proof/x401-node/blob/main/spec/UPGRADING.md and worked seamlessly? Any updates you'd like to see in that file to facilitate future upgrades?
| | Token Object `token_type` MUST be `"Bearer"`; `access_token` REQUIRED | `validate.ts` `parseX401TokenObject`; `agent.ts` `buildTokenObject` | | ||
| | Error Object `error` REQUIRED | `validate.ts` `parseX401ErrorObject` | | ||
| | Token-exchange fixed params (`grant_type`, `subject_token_type`, Bearer) MUST NOT be repeated in the payload | not present in the payload type; set only on the form by `agent.ts` `buildTokenExchangeForm`; verified by `verifier.ts` `parseTokenExchange`. Test: `x401.test.ts` | | ||
| | Embedded `<data>`: tag `data`, `value="application/json;x401=proof-required"`, `hidden`, single JSON object that is a valid payload and SHOULD include a `$schema` member = `https://x401.id/spec/schemas/request.json` | `verifier.ts` `embedHtmlData`; `agent.ts` `detectProofRequirement` plus `parseX401Payload`. Test: `x401.test.ts` | |
Collaborator
There was a problem hiding this comment.
The specification reads "MUST include a $schema member" https://x401.proof.com/spec/latest/#embedded-proof-requirements-in-html-content.
frostevent
approved these changes
Jun 29, 2026
Merged
creatornader
added a commit
to creatornader/atrib
that referenced
this pull request
Jun 30, 2026
Repin the private x401 integration fixture to @proof.com/x401-node@0.3.0 and add a Proof VC Common verifier bridge for caller-owned x401 result evidence. Refresh D134 and the Proof thread map now that proof/x401-node#7 is merged and #18/#20/#21 are closed upstream.
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.
Summary
Updates the Node SDK to match the current hosted x401 v0.2.0 wire surface from proof/x401 main.
Checks