@inrupt/solid-client-vc / issue
Module: issue#
References#
default#
Renames and re-exports issueVerifiableCredential
Functions#
issueVerifiableCredential#
▸ issueVerifiableCredential(issuerEndpoint
, subjectClaims
, credentialClaims?
, options?
): Promise
<VerifiableCredential
>
Request that a given Verifiable Credential (VC) Issuer issues a VC containing the provided claims. The VC Issuer is expected to implement the W3C VC Issuer HTTP API.
Parameters#
Name |
Type |
Description |
---|---|---|
|
|
The |
|
Claims about the subject that will be attested by the VC. |
|
|
Claims about the credential itself, rather than its subject, e.g. credential type or expiration. |
|
|
|
Optional parameter |
Returns#
Promise
<VerifiableCredential
>
the VC returned by the Issuer if the request is successful. Otherwise, an error is thrown.
Since
0.1.0
Defined in#
src/issue/issue.ts:132
▸ issueVerifiableCredential(issuerEndpoint
, subjectId
, subjectClaims
, credentialClaims?
, options?
): Promise
<VerifiableCredential
>
Parameters#
Name |
Type |
---|---|
|
|
|
|
|
|
|
|
|
|
Returns#
Promise
<VerifiableCredential
>
Deprecated
Please remove the subjectId
parameter
Defined in#
src/issue/issue.ts:141