Graphorin API reference v0.1.0
Graphorin API reference / @graphorin/security / / DeviceAuthFetcher
Type Alias: DeviceAuthFetcher
ts
type DeviceAuthFetcher = (url, init) => Promise<{
json: () => Promise<unknown>;
ok: boolean;
status: number;
statusText?: string;
}>;Defined in: packages/security/src/oauth/authorize-device-flow.ts:31
Strategy hook used by tests to stub the device-authorization request.
Parameters
| Parameter | Type |
|---|---|
url | string |
init | { body: string; signal?: AbortSignal; } |
init.body | string |
init.signal? | AbortSignal |
Returns
Promise<{ json: () => Promise<unknown>; ok: boolean; status: number; statusText?: string; }>