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.deleteHistory
    • verification.sendRequest, verification.readHistory, verification.deleteHistory
    • baseUrl = your backend proxy (https://host/ows/<tenant>); leave apiKey empty (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.
Installs
7
First Seen
4 days ago
igrantio-frontend-client — l3-igrant/skills