@inrupt/solid-client-vc / issue
Module: issue#
References#
default#
Renames and re-exports issueVerifiableCredential
Functions#
issueVerifiableCredential#
▸ issueVerifiableCredential(issuerEndpoint
, subjectClaims
, credentialClaims
, options
): Promise
<DatasetWithId
>
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. |
|
|
|
options.fetch: An alternative |
|
( |
|
|
|
- |
Returns#
Promise
<DatasetWithId
>
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:63
▸ 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. |
|
|
|
options.fetch: An alternative |
|
( |
|
|
( |
- |
|
|
- |
Returns#
Promise
<VerifiableCredential
>
the VC returned by the Issuer if the request is successful. Otherwise, an error is thrown.
Since
0.1.0
Deprecated
Deprecated in favour of setting returnLegacyJsonld: false. This will be the default value in future versions of this library.
Defined in#
src/issue/issue.ts:91
▸ issueVerifiableCredential(issuerEndpoint
, subjectClaims
, credentialClaims?
, options?
): Promise
<DatasetWithId
>
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. |
|
|
|
options.fetch: An alternative |
|
( |
|
|
( |
- |
|
|
- |
Returns#
Promise
<DatasetWithId
>
the VC returned by the Issuer if the request is successful. Otherwise, an error is thrown.
Since
0.1.0
Deprecated
Deprecated in favour of setting returnLegacyJsonld: false. This will be the default value in future versions of this library.
Defined in#
src/issue/issue.ts:120