diff --git a/src/GitHub/public/DeviceFlow/Wait-GitHubToken.ps1 b/src/GitHub/public/DeviceFlow/Wait-GitHubToken.ps1 index 3d424265a..cbafc9851 100644 --- a/src/GitHub/public/DeviceFlow/Wait-GitHubToken.ps1 +++ b/src/GitHub/public/DeviceFlow/Wait-GitHubToken.ps1 @@ -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) {