@ces-sdk/client-identity
v0.2.0
Published
SDK to make API calls to the CES Identity API
Downloads
40
Readme
Endorsements Client
Node SDK client for the CES Identity API. This client simplifies making API calls, and it defines the types configured in the API spec.
Usage
import { BrowserLocalStorageProvider } from '@ces-sdk/core'
import { EndorsementClient, RequestStatusEnum, RequestTypeEnum } from '@ces-sdk/client-endorsements'
const client = new EndorsementClient({
baseUrl: process.env.NUXT_ENV_CESAPI_URL,
credentialProvider: new BrowserLocalStorageProvider('auth._token.hydra')
})
const endorsements = await client.searchEndorsements({
type: RequestTypeEnum.APPLICANT,
requestStatuses: RequestStatusEnum.PENDING
})