authenticate

Function authenticate 

Source
pub async fn authenticate(client_id: &SecretString) -> Result<()>
Expand description

Performs the GitHub OAuth device flow authentication.

This function:

  1. Requests a device code from GitHub
  2. Returns the verification URI and user code for display
  3. Polls GitHub until the user authorizes or times out
  4. Stores the resulting token in the system keychain

Requires APTU_GH_CLIENT_ID environment variable to be set.