@openid4vc/openid4vp 0.3.0-alpha-20250406102816 → 0.3.0-alpha-20250415153554
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -1002,7 +1002,7 @@ async function fetchJarRequestObject(options) {
|
|
|
1002
1002
|
}
|
|
1003
1003
|
const response = await createFetcher(fetch)(requestUri, {
|
|
1004
1004
|
method,
|
|
1005
|
-
body: method === "
|
|
1005
|
+
body: method === "post" ? objectToQueryParams2(wallet.metadata ?? {}) : void 0,
|
|
1006
1006
|
headers: {
|
|
1007
1007
|
Accept: `${ContentType2.OAuthAuthorizationRequestJwt}, ${ContentType2.Jwt};q=0.9, text/plain`,
|
|
1008
1008
|
"Content-Type": ContentType2.XWwwFormUrlencoded
|
|
@@ -1038,11 +1038,11 @@ async function verifyJarRequest(options) {
|
|
|
1038
1038
|
const jarRequestParams = validateJarRequestParams(options);
|
|
1039
1039
|
const sendBy = jarRequestParams.request ? "value" : "reference";
|
|
1040
1040
|
const clientIdentifierScheme = jarRequestParams.client_id ? zClientIdScheme.safeParse(jarRequestParams.client_id.split(":")[0]).data : "web-origin";
|
|
1041
|
-
const method = jarRequestParams.request_uri_method ?? "
|
|
1042
|
-
if (method !== "
|
|
1041
|
+
const method = jarRequestParams.request_uri_method ?? "get";
|
|
1042
|
+
if (method !== "get" && method !== "post") {
|
|
1043
1043
|
throw new Oauth2ServerErrorResponseError8({
|
|
1044
1044
|
error: Oauth2ErrorCodes7.InvalidRequestUriMethod,
|
|
1045
|
-
error_description:
|
|
1045
|
+
error_description: `Invalid request_uri_method. Must be 'get' or 'post'.`
|
|
1046
1046
|
});
|
|
1047
1047
|
}
|
|
1048
1048
|
const requestObject = jarRequestParams.request ?? await fetchJarRequestObject({
|