mirror of
https://github.com/malmeloo/FindMy.py.git
synced 2026-04-22 00:35:51 +02:00
fix(2fa): Fix 403 for trusted device
This commit is contained in:
@@ -737,7 +737,7 @@ class AsyncAppleAccount(BaseAppleAccount):
|
||||
r = await self._http.request(
|
||||
method,
|
||||
url,
|
||||
json=data or {},
|
||||
json=data,
|
||||
headers=headers,
|
||||
)
|
||||
if not r.ok:
|
||||
|
||||
@@ -15,7 +15,7 @@ logging.getLogger(__name__)
|
||||
|
||||
|
||||
class _HttpRequestOptions(TypedDict, total=False):
|
||||
json: dict[str, Any]
|
||||
json: dict[str, Any] | None
|
||||
headers: dict[str, str]
|
||||
auth: tuple[str, str] | BasicAuth
|
||||
data: bytes
|
||||
|
||||
Reference in New Issue
Block a user