diff --git a/supabase/_async/auth_client.py b/supabase/_async/auth_client.py index 5426c541..9d69fd96 100644 --- a/supabase/_async/auth_client.py +++ b/supabase/_async/auth_client.py @@ -1,12 +1,11 @@ from typing import Dict, Optional from gotrue import ( - AuthFlowType, AsyncGoTrueClient, AsyncMemoryStorage, AsyncSupportedStorage, + AuthFlowType, ) - from gotrue.http_clients import AsyncClient diff --git a/supabase/_async/client.py b/supabase/_async/client.py index 6bf65126..f6e5ada5 100644 --- a/supabase/_async/client.py +++ b/supabase/_async/client.py @@ -10,12 +10,12 @@ AsyncRequestBuilder, ) from postgrest.constants import DEFAULT_POSTGREST_CLIENT_TIMEOUT -from storage3.constants import DEFAULT_TIMEOUT as DEFAULT_STORAGE_CLIENT_TIMEOUT from storage3 import AsyncStorageClient +from storage3.constants import DEFAULT_TIMEOUT as DEFAULT_STORAGE_CLIENT_TIMEOUT from supafunc import AsyncFunctionsClient -from .auth_client import AsyncSupabaseAuthClient from ..lib.client_options import ClientOptions +from .auth_client import AsyncSupabaseAuthClient # Create an exception class when user does not provide a valid url or key. diff --git a/supabase/_sync/auth_client.py b/supabase/_sync/auth_client.py index fbbf9dd2..5a544dd2 100644 --- a/supabase/_sync/auth_client.py +++ b/supabase/_sync/auth_client.py @@ -6,7 +6,6 @@ SyncMemoryStorage, SyncSupportedStorage, ) - from gotrue.http_clients import SyncClient diff --git a/supabase/_sync/client.py b/supabase/_sync/client.py index a4768b62..3256a92d 100644 --- a/supabase/_sync/client.py +++ b/supabase/_sync/client.py @@ -4,18 +4,14 @@ from deprecation import deprecated from gotrue.types import AuthChangeEvent from httpx import Timeout -from postgrest import ( - SyncFilterRequestBuilder, - SyncPostgrestClient, - SyncRequestBuilder, -) +from postgrest import SyncFilterRequestBuilder, SyncPostgrestClient, SyncRequestBuilder from postgrest.constants import DEFAULT_POSTGREST_CLIENT_TIMEOUT -from storage3.constants import DEFAULT_TIMEOUT as DEFAULT_STORAGE_CLIENT_TIMEOUT from storage3 import SyncStorageClient +from storage3.constants import DEFAULT_TIMEOUT as DEFAULT_STORAGE_CLIENT_TIMEOUT from supafunc import SyncFunctionsClient -from .auth_client import SyncSupabaseAuthClient from ..lib.client_options import ClientOptions +from .auth_client import SyncSupabaseAuthClient # Create an exception class when user does not provide a valid url or key.