Skip to content

Commit

Permalink
Fix DeviceFlow Refresh scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
MariusStorhaug committed Sep 21, 2023
1 parent bab5f74 commit c8a0c83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/GitHub/public/DeviceFlow/Wait-GitHubToken.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ function Wait-GitHubToken {

do {
if ($Refresh) {
$response = Request-GitHubToken -Refresh -ClientID $ClientID -RefreshToken $script:RefreshToken
$response = Request-GitHubToken -ClientID $ClientID -RefreshToken $script:RefreshToken
} else {
$response = Request-GitHubToken -DeviceCode $DeviceCode -ClientID $ClientID
$response = Request-GitHubToken -ClientID $ClientID -DeviceCode $DeviceCode
}
if ($response.error) {
switch ($response.error) {
Expand Down

0 comments on commit c8a0c83

Please sign in to comment.