diff --git a/aiocraft/mc/auth/microsoft.py b/aiocraft/mc/auth/microsoft.py index 4446ef2..2bccbe8 100644 --- a/aiocraft/mc/auth/microsoft.py +++ b/aiocraft/mc/auth/microsoft.py @@ -99,7 +99,7 @@ class MicrosoftAuthenticator(AuthInterface): if code: payload['code'] = code elif self.refreshToken: - payload['refreshToken'] = self.refreshToken + payload['refresh_token'] = self.refreshToken else: raise InvalidStateError("Missing auth code and refresh token") auth_response = await self._post(