Skip to content

Commit

Permalink
Improve signin experience
Browse files Browse the repository at this point in the history
  • Loading branch information
MariusStorhaug committed Sep 20, 2023
1 parent 410523e commit 55ee805
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 55ee805

Please sign in to comment.