Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions src/pythonxbox/authentication/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,13 @@
class AuthenticationManager:
def __init__(
self,
client_session: SignedSession,
client_session: SignedSession | httpx.AsyncClient,
client_id: str,
client_secret: str,
redirect_uri: str,
scopes: list[str] | None = None,
) -> None:
if not isinstance(client_session, (SignedSession, httpx.AsyncClient)):
raise DeprecationWarning(
"""Xbox WebAPI changed to use SignedSession (wrapped httpx.AsyncClient).
Please check the documentation"""
)

self.session: SignedSession = client_session
self.session = client_session
self._client_id: str = client_id
self._client_secret: str = client_secret
self._redirect_uri: str = redirect_uri
Expand Down
Loading