Skip to content

requestDeviceCode

View as Markdown
function requestDeviceCode(
fetchFn,
hubUrl,
body
): Promise<{
deviceCode: string;
expiresInSec: number;
intervalSec: number;
userCode: string;
verificationUri: string;
}>;

Defined in: agent/src/device.ts:99

Parameter Type
fetchFn (input, init?) => Promise<Response>
hubUrl string
body { machineKey?: string; name?: string; os?: string; }
body.machineKey? string
body.name? string
body.os? string

Promise<{ deviceCode: string; expiresInSec: number; intervalSec: number; userCode: string; verificationUri: string; }>