Skip to main content

device_code_login

Function device_code_login 

Source
pub async fn device_code_login(
    provider: OAuthProvider,
) -> Result<PendingOAuthLogin>
Expand description

Interactive device-code login for any provider whose row offers it. Shows the verification URL + user code only on a terminal and polls until approved. A provider with no device flow (ChatGPT) fails here with the reason, instead of deep in transport code.