igrantio-frontend-client
Installation
SKILL.md
iGrant.io frontend client (generic, no SDK)
When to use
The shared frontend building block for any OWS integration. igrantio-issuer-frontend
and igrantio-verifier-frontend both build on it. It replaces the internal
@igrant/usecase-sdk / igrant-api-lib with self-contained, framework-agnostic
code you own. Read igrantio-ows-overview for the endpoint/response contract.
What it provides
Framework-agnostic core (only fetch + EventSource):
createOwsClient({ baseUrl, apiKey? })- typed methods:issuance.issueInTime,issuance.startDeferred,issuance.completeDeferred,issuance.readHistory,issuance.deleteHistoryverification.sendRequest,verification.readHistory,verification.deleteHistorybaseUrl= your backend proxy (https://host/ows/<tenant>); leaveapiKeyempty (the backend injects it).
openSseSession({ webhookBaseUrl, exchangeId, onMessage })- EventSource session with consume-and-delete and reconnect; returns{ close }.types.ts- request/response + SSE event types.