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
Argument of type 'W3cJsonLdVerifyCredentialOptions' is not assignable to parameter of type 'W3cJwtVerifyCredentialOptions'.
Types of property 'credential' are incompatible.
Type 'W3cJsonLdVerifiableCredential' is not assignable to type 'string | W3cJwtVerifiableCredential'.
Type 'W3cJsonLdVerifiableCredential' is missing the following properties from type 'W3cJwtVerifiableCredential': jwt, _credential, credential, serializedJwtts(2345)
I suggest that the type signature of verifyCredential be changed from
public async verifyCredential(options: W3cVerifyCredentialOptions)
to
public async verifyCredential<Format extends ClaimFormat.JwtVc | ClaimFormat.LdpVc>(options: W3cVerifyCredentialOptions<Format>
The text was updated successfully, but these errors were encountered:
I believe the type signature of the
W3cCredentialsApi
verifyCredential method is incorrect.Code as follows has a TS compilation error:
I suggest that the type signature of
verifyCredential
be changed fromto
The text was updated successfully, but these errors were encountered: