Skip to content
Open
2 changes: 2 additions & 0 deletions descope/_auth_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
from descope.auth import Auth


# XXX in the future we can remove this class entirely and have auth methods be base HTTPBase instead
class AuthBase:
"""Base class for classes having auth"""

def __init__(self, auth: Auth):
self._auth = auth
self._http = auth.http_client
10 changes: 10 additions & 0 deletions descope/_http_base.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from __future__ import annotations

from descope.http_client import HTTPClient


class HTTPBase:
"""Base class for classes that only need HTTP access."""

def __init__(self, http_client: HTTPClient):
self._http = http_client
Loading
Loading