- Description:
Fetch proofs from Profile obtained through ASPE
- Source:
Fetch proofs from Profile obtained through ASPE
Example
import { fetcher } from 'doipjs';
const data = await fetcher.aspe.fn({ aspeUri: 'aspe:domain.example:abc123def456' });
Members
(static, constant) timeout :number
- Description:
Default timeout after which the fetch is aborted
- Source:
- Default Value:
- 5000
Default timeout after which the fetch is aborted
Type:
- number
Methods
(static) fn(data, optsopt) → {Promise.<object>}
- Description:
Execute a fetch request
- Source:
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
data |
object | Data used in the request Properties
|
|||||||||||||
opts |
module:types~VerificationConfig |
<optional> |
Options used to enable the request |
Returns:
The fetched claims from an ASP profile
- Type
- Promise.<object>