You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.
Please note that uniResolvers is an array, so ...uniResolvers will send N args to the Resolver constructor (where N is the number of elements of the array). Causing that only the first element of the array is configured as resolver.
Proposed fix, use a json object instead of array:
let uniResolvers = {};
for (const didMethod of opts.didMethods) {
const uniResolver = getUniResolver(getMethodFromDid(didMethod), { resolveUrl: opts.resolveUrl });
uniResolvers = { ...uniResolvers, ...uniResolver };
}
return new Resolver(uniResolvers);
The text was updated successfully, but these errors were encountered:
Hi,
I think I found an issue in
/functions/DIDResolution.ts
:https://github.com/Sphereon-Opensource/did-auth-siop/blob/cdbbcfe3c9e5d7a7b099abbf8371230485acc7e9/src/main/functions/DIDResolution.ts#L17-L24
Please note that
uniResolvers
is an array, so...uniResolvers
will send N args to theResolver
constructor (where N is the number of elements of the array). Causing that only the first element of the array is configured as resolver.Proposed fix, use a json object instead of array:
The text was updated successfully, but these errors were encountered: