diff --git a/src/GitHub/private/Auth/DeviceFlow/Invoke-GitHubDeviceCodeLogin.ps1 b/src/GitHub/private/Auth/DeviceFlow/Invoke-GitHubDeviceCodeLogin.ps1 index 9da58ecd6..6f766e39f 100644 --- a/src/GitHub/private/Auth/DeviceFlow/Invoke-GitHubDeviceCodeLogin.ps1 +++ b/src/GitHub/private/Auth/DeviceFlow/Invoke-GitHubDeviceCodeLogin.ps1 @@ -31,8 +31,12 @@ $userCode = $deviceCodeResponse.user_code $verificationUri = $deviceCodeResponse.verification_uri + Write-Host "Please visit: $verificationUri" - Write-Host "and enter code: $userCode" + Write-Host " and enter code: $userCode (added to clipboard)" + $userCode | Set-Clipboard + Read-Host "Press Enter to open a browser..." + Start-Process $verificationUri $tokenResponse = Wait-GitHubToken -DeviceCode $deviceCode -ClientID $ClientID -Interval $interval