Initiates a device-code sign-in flow. Returns a user code and QR code immediately. Display these to the user on the device. They scan the QR or enter the code on another device to authorize. The SDK polls in the background and completes sign-in automatically.Documentation Index
Fetch the complete documentation index at: https://docs.discovr.media/llms.txt
Use this file to discover all available pages before exploring further.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| pollIntervalMs / pollIntervalSeconds | number | No | How often to poll for authorization (default: 5000ms / 5s). |
| timeoutMs / timeoutSeconds | number | No | Maximum time to wait for authorization before giving up (default: 600000ms / 600s). |
Returns
DeviceCodeResult — An object containing userCode (short code for display), qrCode (base64 data URL), deviceCode (internal), and expiresIn (seconds).