Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/security / / DiscoveryFetcher

Type Alias: DiscoveryFetcher

ts
type DiscoveryFetcher = (url, init) => Promise<{
  json: () => Promise<unknown>;
  ok: boolean;
  status: number;
}>;

Defined in: packages/security/src/oauth/discovery.ts:22

Strategy hook used by tests so the unit suite never hits the network.

Parameters

ParameterType
urlstring
init{ signal?: AbortSignal; }
init.signal?AbortSignal

Returns

Promise<{ json: () => Promise&lt;unknown&gt;; ok: boolean; status: number; }>