iiamhuman Developer Docsv1

PERSONHOOD CREDENTIAL INTEGRATION · STEP 8

Public Issuer Information and Official Card

Fetch public issuer metadata and see the official Vue SDK banner in English and Traditional Chinese.

Public Issuer Information and Official Card

Fetch public issuer display information without registration, cookies, or API tokens:

GET /api/v1/issuers?did=<URL-encoded-issuer-DID>

Use the public registry base URL https://developer.iamhuman.link/appregistry. The I Am Human issuer website is https://iamhuman.link. Your own test and production deployments both connect to this public registry.

Success is { ok: true, issuer }. The issuer contains did, environment, name, description, iconUrl, websiteUrl, defaultLocale: "en", and localizations["zh-Hant"] with translated name and description. The complete HTTPS Firebase Storage iconUrl is authoritative: preserve its path and query parameters. No Firebase package or login is required. Metadata is cached for five minutes; versioned icons are cached for one year.

Missing, repeated, or malformed DID input returns HTTP 400 INVALID_INPUT. Unknown issuer DIDs return HTTP 404 ISSUER_NOT_FOUND. Errors use { ok: false, error: { code, message } }.

Fetch from either SDK

Both @iamhuman.link/presentation-exchange-sdk (server) and @iamhuman.link/presentation-exchange-vue (Vue browser) export the same helper and IssuerMetadata type:

import { fetchIssuerMetadata } from '@iamhuman.link/presentation-exchange-vue';

const issuer = await fetchIssuerMetadata({
  did: issuerDid, // the public credential issuer DID
  registryBaseUrl: 'https://developer.iamhuman.link/appregistry',
});

Use the backend package import for server-side fetching. The helper returns null for ISSUER_NOT_FOUND. Catch IssuerMetadataError for INVALID_INPUT, FETCH_FAILED (including timeout or cancellation), and INVALID_RESPONSE. Requests time out after five seconds; pass an optional signal for cancellation. Apps own loading, retry, and error messages. The registry URL must come from trusted application configuration, not user input.

See the official banner

These are live instances of the Vue SDK’s IssuerBanner, using public I Am Human issuer metadata. Both languages use the same official icon and website link. The component inherits the surrounding font and color. The example below stacks the icon above the text on small screens; the live previews use the same adjustment.

Loading the official issuer banners…

Integrate the Vue card

Install the Vue SDK and its QR component peer dependency in your Vue 3 application:

npm install @iamhuman.link/presentation-exchange-vue qrcode.vue

This complete component fetches public issuer information when mounted, handles loading and errors, and cancels the request when unmounted. Pass the public credential issuer DID as issuerDid; this is not your app’s request-issuer DID or a signing secret.

<template>
  <section aria-label="Credential issuer information">
    <p v-if="loading" role="status">Loading issuer information…</p>
    <div v-else-if="error" role="alert">
      <p>{{ error }}</p>
      <button type="button" @click="loadIssuer">Try again</button>
    </div>
    <IssuerBanner v-else-if="issuer" :issuer="issuer" :locale="locale" />
    <p v-else>Issuer information is not available.</p>
  </section>
</template>

<script setup lang="ts">
import { onMounted, onUnmounted, ref } from 'vue';
import {
  fetchIssuerMetadata,
  IssuerBanner,
  type IssuerMetadata,
} from '@iamhuman.link/presentation-exchange-vue';
import '@iamhuman.link/presentation-exchange-vue/style.css';

const props = withDefaults(defineProps<{
  issuerDid: string;
  locale?: string;
}>(), { locale: 'en' });
const issuer = ref<IssuerMetadata | null>(null);
const loading = ref(true);
const error = ref('');
let controller: AbortController | undefined;
let disposed = false;

async function loadIssuer() {
  controller?.abort();
  controller = new AbortController();
  loading.value = true;
  error.value = '';
  try {
    const result = await fetchIssuerMetadata({
      did: props.issuerDid,
      registryBaseUrl: 'https://developer.iamhuman.link/appregistry',
      signal: controller.signal,
    });
    if (!disposed) issuer.value = result;
  } catch {
    if (!disposed) error.value = 'Could not load issuer information. Please try again.';
  } finally {
    if (!disposed) loading.value = false;
  }
}

onMounted(loadIssuer);
onUnmounted(() => {
  disposed = true;
  controller?.abort();
});
</script>

<style scoped>
@media (max-width: 600px) {
  :deep(.issuer-banner) { flex-direction: column; }
  :deep(.issuer-banner img),
  :deep(.issuer-banner__fallback) { max-width: 100%; }
}
</style>

Use locale="zh-Hant" for Traditional Chinese or locale="en" for English. Unsupported locales fall back to English. Override interface text through labels, with issuer and website keys. Metadata comes from PEP; the component does not fetch it or make verification decisions. If the icon cannot load, the SDK displays an initial while keeping the issuer name and website visible.

Other frameworks and plain HTML

Call the HTTP API directly or render metadata fetched by your server. For example, given validated issuer metadata and existing icon, name, description, and link DOM elements:

icon.src = issuer.iconUrl;
icon.alt = '';
name.textContent = issuer.name;
description.textContent = issuer.description;
link.href = issuer.websiteUrl;
link.textContent = 'Visit issuer website';
link.target = '_blank';
link.rel = 'noopener noreferrer';

Validate HTTPS image/link URLs before using raw HTTP responses. Render text through textContent, never innerHTML. Hide failed icons and keep the issuer name visible. For Traditional Chinese, use issuer.localizations['zh-Hant'] with the English values as fallback.

Allow your configured PEP origin in connect-src and https://firebasestorage.googleapis.com in img-src. Also allow the storage origin in connect-src if downloading image bytes with fetch; this requires Storage CORS. Displaying the URL in an image element lets the browser retrieve it directly.

Issuer metadata and the banner are public display information. They do not prove that an app or person has been verified. Keep credential signatures, trusted issuer policy, status checks, and authorization on the backend. Direct requests expose ordinary network information to PEP and Storage; use backend fetching where appropriate. Never send signing secrets or credential JWTs to this API.

Continue with Submit and verify.