πDIDAuth
If Query.type = βDIDAuthβ , then it is a basic authentication request that does not include a verifiable credential : there is no selection of credential to propose to the user, call the function didkit.DIDAuth(did, β{β challenge β:β β¦. β,β domain β:β β¦.. β}β, key) which will create an empty presentation used only for authentication. The presentation passed with the POST request will look like this:
If Query.type =βQueryByExample βthen it will take the user selects credentials in a list constituted according to the criteria specified in βcredentialQuery.exampleβ. Then it will be necessary to call the didkit.issuePresentation (β¦) function as what is currently done (there is no change in the function call).
Refer to https://w3c-ccg.github.io/vp-request-spec/#query-by-example for more information.
Last updated