mirror of
https://github.com/malmeloo/FindMy.py.git
synced 2026-04-26 18:55:46 +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(
|
r = await self._http.request(
|
||||||
method,
|
method,
|
||||||
url,
|
url,
|
||||||
json=data or {},
|
json=data,
|
||||||
headers=headers,
|
headers=headers,
|
||||||
)
|
)
|
||||||
if not r.ok:
|
if not r.ok:
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ logging.getLogger(__name__)
|
|||||||
|
|
||||||
|
|
||||||
class _HttpRequestOptions(TypedDict, total=False):
|
class _HttpRequestOptions(TypedDict, total=False):
|
||||||
json: dict[str, Any]
|
json: dict[str, Any] | None
|
||||||
headers: dict[str, str]
|
headers: dict[str, str]
|
||||||
auth: tuple[str, str] | BasicAuth
|
auth: tuple[str, str] | BasicAuth
|
||||||
data: bytes
|
data: bytes
|
||||||
|
|||||||
Reference in New Issue
Block a user