pub async fn authorize_device_code_flow(
config: &OAuthProviderConfig,
) -> Result<OAuthToken, LlmError>Expand description
Run the OAuth 2.0 Device Code flow for headless environments.
- Request a device code from the provider
- Display the user code and verification URI
- Poll the token endpoint until the user completes authorization
Returns the obtained OAuthToken on success.