diff --git a/packages/app-lib/src/api/minecraft_auth.rs b/packages/app-lib/src/api/minecraft_auth.rs index 8de63a1f..74411116 100644 --- a/packages/app-lib/src/api/minecraft_auth.rs +++ b/packages/app-lib/src/api/minecraft_auth.rs @@ -9,10 +9,10 @@ use crate::util::fetch::REQWEST_CLIENT; #[tracing::instrument] pub async fn check_reachable() -> crate::Result<()> { let resp = REQWEST_CLIENT - .get("https://api.minecraftservices.com/entitlements/mcstore") + .get("https://sessionserver.mojang.com/session/minecraft/hasJoined") .send() .await?; - if resp.status() == StatusCode::UNAUTHORIZED { + if resp.status() == StatusCode::NO_CONTENT { return Ok(()); } resp.error_for_status()?;