Skip to content

Commit

Permalink
Fix authentication endpoints (#354)
Browse files Browse the repository at this point in the history
  • Loading branch information
rsdy authored May 15, 2023
1 parent 1687b88 commit d204cca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ impl crate::Octocrab {
};
let codes: DeviceCodes = self
.post(
"login/device/code",
"/login/device/code",
Some(&DeviceFlow {
client_id: client_id.expose_secret(),
scope: &scope,
Expand Down Expand Up @@ -201,7 +201,7 @@ impl DeviceCodes {
) -> Result<Either<OAuth, Continue>> {
let poll: TokenResponse = crab
.post(
"login/oauth/access_token",
"/login/oauth/access_token",
Some(&PollForDevice {
client_id: client_id.expose_secret(),
device_code: &self.device_code,
Expand Down

0 comments on commit d204cca

Please sign in to comment.