Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
Write-Host '! ' -ForegroundColor DarkYellow -NoNewline
Write-Host "We added the code to your clipboard: [$userCode]"
$userCode | Set-Clipboard
Read-Host 'Press Enter to open github.com in your browser...'
Read-Host "Press Enter to open $HostName in your browser..."
Start-Process $verificationUri

$tokenResponse = Wait-GitHubAccessToken -DeviceCode $deviceCode -ClientID $ClientID -Interval $interval -HostName $HostName
Expand Down
4 changes: 2 additions & 2 deletions src/functions/public/Auth/Connect-GitHubAccount.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@
Write-Verbose 'Logging in using personal access token...'
Reset-GitHubConfig -Scope 'Auth'
Write-Host '! ' -ForegroundColor DarkYellow -NoNewline
Start-Process 'https://github.com/settings/tokens'
Start-Process "https://$HostName/settings/tokens"
$accessTokenValue = Read-Host -Prompt 'Enter your personal access token' -AsSecureString
$accessTokenType = (ConvertFrom-SecureString $accessTokenValue -AsPlainText) -replace '_.*$', '_*'
if ($accessTokenType -notmatch '^ghp_|^github_pat_') {
Expand All @@ -229,7 +229,7 @@
break
}
'App' {
Write-Verbose 'Logging in using a GitHub App...'
Write-Verbose 'Logging in as a GitHub App...'
Reset-GitHubConfig -Scope 'Auth'
$jwt = Get-GitHubAppJWT -ClientID $ClientID -PrivateKey $PrivateKey
$settings = @{
Expand Down