function resolveIssuer
resolveIssuer(origin: string): Promise<string>

Returns the issuer of the instance at origin, cached: origin itself, or, when origin is where the instance's pages are and its API lives at another, the issuer the pages' metadata names, whose own metadata must name those pages back as where its /authorize is. People know an instance by the address in their browser, which a sign-in form or the trust list may be given; a handle and the stored identities name the issuer.

Parameters

origin: string

Return Type

Promise<string>

Throws

Error

When origin can't be reached, isn't a gerbeur instance, or names an issuer that doesn't name it back.

Usage

import { resolveIssuer } from "api/remote/gerbeur-instance.ts";