Module device_code_flow

Source
Expand description

Authorize using the device authorization grant flow

This flow allows users to sign in to input-constrained devices such as a smart TV, IoT device, or printer.

You can learn more about this authorization flow here.

Structs§

DeviceCodeAuthorization
A successful token response.
DeviceCodeErrorResponse
Error response returned from the device code flow.
DeviceCodePhaseOneResponse
Contains the required information to allow a user to sign in.

Functions§

start
Start the device authorization grant flow. The user has only 15 minutes to sign in (the usual value for expires_in).