Skip to content

Commit

Permalink
fix: scope app
Browse files Browse the repository at this point in the history
  • Loading branch information
1zun4 committed Mar 20, 2024
1 parent ca3e419 commit 2b7484a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions azalea-auth/src/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ pub async fn get_ms_link_code(
Ok(client
.post("https://login.live.com/oauth20_connect.srf")
.form(&vec![
("scope", "service::user.auth.xboxlive.com::MBI_SSL"),
("scope", "XboxLive.signin offline_access"),
("client_id", CLIENT_ID),
("response_type", "device_code"),
])
Expand Down Expand Up @@ -382,7 +382,7 @@ pub async fn refresh_ms_auth_token(
let access_token_response_text = client
.post("https://login.live.com/oauth20_token.srf")
.form(&vec![
("scope", "service::user.auth.xboxlive.com::MBI_SSL"),
("scope", "XboxLive.signin offline_access"),
("client_id", CLIENT_ID),
("grant_type", "refresh_token"),
("refresh_token", refresh_token),
Expand Down

0 comments on commit 2b7484a

Please sign in to comment.