Skip to content

Commit

Permalink
Fix argument order
Browse files Browse the repository at this point in the history
  • Loading branch information
jakewilkins committed Jul 22, 2023
1 parent 9d937d6 commit af0f5d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/github.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ pub fn refresh_credential(credential: &mut Credential, config: &mut CredentialRe
if !config.is_configured() {
return Err(util::credential_error("Credential request is not associated to an App Config"))
}
let refresh_result = github_device_flow::refresh(&credential.refresh_token, &config.username, Some(config.host.clone()));
let refresh_result = github_device_flow::refresh(&config.username, &credential.refresh_token, Some(config.host.clone()));

match refresh_result {
Ok(cred) => {
Expand Down

0 comments on commit af0f5d3

Please sign in to comment.