Skip to main content

Module device

Module device 

Source
Expand description

The device flow (RFC 8628): GitHub gives a code for the user to enter at github.com/login/device, and Subspace polls the token endpoint until the user approves, declines or the code expires. It needs no client secret, so builds without one use it.

Structs§

DeviceCode
GitHub’s answer to a device-code request.

Enums§

Poll
What to do after one poll.

Constants§

DEVICE_CODE_PATH
GRANT_TYPE

Functions§

after
The next step after reply, polling every interval seconds so far.
parse_code
Reads a device-code answer.