@openid4vc/oauth2 0.3.0-alpha-20250321132043 → 0.3.0-alpha-20250321142414
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 +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -687,7 +687,6 @@ async function fetchAuthorizationServerMetadata(issuer, fetch) {
|
|
|
687
687
|
wellKnownAuthorizationServerSuffix,
|
|
688
688
|
parsedIssuerUrl.pathname
|
|
689
689
|
]);
|
|
690
|
-
const nonCompliantAuthorizationServerWellKnownMetadataUrl = (0, import_utils9.joinUriParts)(issuer, [wellKnownAuthorizationServerSuffix]);
|
|
691
690
|
const authorizationServerResult = await fetchWellKnownMetadata(
|
|
692
691
|
authorizationServerWellKnownMetadataUrl,
|
|
693
692
|
zAuthorizationServerMetadata,
|
|
@@ -701,11 +700,12 @@ async function fetchAuthorizationServerMetadata(issuer, fetch) {
|
|
|
701
700
|
}
|
|
702
701
|
return authorizationServerResult;
|
|
703
702
|
}
|
|
704
|
-
const
|
|
703
|
+
const nonCompliantAuthorizationServerWellKnownMetadataUrl = (0, import_utils9.joinUriParts)(issuer, [wellKnownAuthorizationServerSuffix]);
|
|
704
|
+
const alternativeAuthorizationServerResult = nonCompliantAuthorizationServerWellKnownMetadataUrl !== authorizationServerWellKnownMetadataUrl ? await fetchWellKnownMetadata(
|
|
705
705
|
nonCompliantAuthorizationServerWellKnownMetadataUrl,
|
|
706
706
|
zAuthorizationServerMetadata,
|
|
707
707
|
fetch
|
|
708
|
-
);
|
|
708
|
+
) : void 0;
|
|
709
709
|
if (alternativeAuthorizationServerResult) {
|
|
710
710
|
if (alternativeAuthorizationServerResult.issuer !== issuer) {
|
|
711
711
|
throw new Oauth2Error(
|