Skip to content

Commit

Permalink
refactor(auth): rename device flow poll method
Browse files Browse the repository at this point in the history
  • Loading branch information
ymgyt committed Mar 15, 2024
1 parent acf3685 commit 19fe8c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions crates/synd_auth/src/device_flow/github.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ impl DeviceFlow {
Ok(response)
}

pub async fn pool_device_access_token(
pub async fn poll_device_access_token(
&self,
device_code: String,
interval: Option<i64>,
Expand Down Expand Up @@ -166,6 +166,6 @@ impl DeviceFlow {

callback(verification_uri, user_code).await;

self.pool_device_access_token(device_code, interval).await
self.poll_device_access_token(device_code, interval).await
}
}
2 changes: 1 addition & 1 deletion crates/synd_term/src/application/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ impl Application {
let device_flow = self.config.github_device_flow.clone();
let fut = async move {
match device_flow
.pool_device_access_token(
.poll_device_access_token(
device_authorization.device_code,
device_authorization.interval,
)
Expand Down

0 comments on commit 19fe8c4

Please sign in to comment.