File tree Expand file tree Collapse file tree 3 files changed +36
-8
lines changed Expand file tree Collapse file tree 3 files changed +36
-8
lines changed Original file line number Diff line number Diff line change @@ -18,3 +18,5 @@ tests_only:
18
18
build_sync :
19
19
poetry run unasync supabase tests
20
20
sed -i ' s/asyncio.create_task(self.realtime.set_auth(access_token))//g' supabase/_sync/client.py
21
+ sed -i ' s/asynch/synch/g' supabase/_sync/auth_client.py
22
+ sed -i ' s/Async/Sync/g' supabase/_sync/auth_client.py
Original file line number Diff line number Diff line change 10
10
11
11
12
12
class AsyncSupabaseAuthClient (AsyncGoTrueClient ):
13
- """SupabaseAuthClient """
13
+ """Supabase Auth Client for asynchronous operations. """
14
14
15
15
def __init__ (
16
16
self ,
@@ -26,12 +26,25 @@ def __init__(
26
26
verify : bool = True ,
27
27
proxy : Optional [str ] = None ,
28
28
):
29
- """Instantiate SupabaseAuthClient instance."""
29
+ """
30
+ Instantiate a SupabaseAuthClient instance.
31
+
32
+ Args:
33
+ url (str): The URL of the Supabase instance.
34
+ headers (Optional[Dict[str, str]]): Optional headers to include in requests.
35
+ storage_key (Optional[str]): Key to store session information.
36
+ auto_refresh_token (bool): Whether to automatically refresh the token. Defaults to True.
37
+ persist_session (bool): Whether to persist the session. Defaults to True.
38
+ storage (AsyncSupportedStorage): Storage mechanism. Defaults to AsyncMemoryStorage().
39
+ http_client (Optional[AsyncClient]): HTTP client for making requests. Defaults to None.
40
+ flow_type (AuthFlowType): Type of authentication flow. Defaults to "implicit".
41
+ verify (bool): Whether to verify SSL certificates. Defaults to True.
42
+ proxy (Optional[str]): Proxy URL. Defaults to None.
43
+ """
30
44
if headers is None :
31
45
headers = {}
32
46
33
- AsyncGoTrueClient .__init__ (
34
- self ,
47
+ super ().__init__ (
35
48
url = url ,
36
49
headers = headers ,
37
50
storage_key = storage_key ,
Original file line number Diff line number Diff line change 10
10
11
11
12
12
class SyncSupabaseAuthClient (SyncGoTrueClient ):
13
- """SupabaseAuthClient """
13
+ """Supabase Auth Client for synchronous operations. """
14
14
15
15
def __init__ (
16
16
self ,
@@ -26,12 +26,25 @@ def __init__(
26
26
verify : bool = True ,
27
27
proxy : Optional [str ] = None ,
28
28
):
29
- """Instantiate SupabaseAuthClient instance."""
29
+ """
30
+ Instantiate a SupabaseAuthClient instance.
31
+
32
+ Args:
33
+ url (str): The URL of the Supabase instance.
34
+ headers (Optional[Dict[str, str]]): Optional headers to include in requests.
35
+ storage_key (Optional[str]): Key to store session information.
36
+ auto_refresh_token (bool): Whether to automatically refresh the token. Defaults to True.
37
+ persist_session (bool): Whether to persist the session. Defaults to True.
38
+ storage (SyncSupportedStorage): Storage mechanism. Defaults to SyncMemoryStorage().
39
+ http_client (Optional[SyncClient]): HTTP client for making requests. Defaults to None.
40
+ flow_type (AuthFlowType): Type of authentication flow. Defaults to "implicit".
41
+ verify (bool): Whether to verify SSL certificates. Defaults to True.
42
+ proxy (Optional[str]): Proxy URL. Defaults to None.
43
+ """
30
44
if headers is None :
31
45
headers = {}
32
46
33
- SyncGoTrueClient .__init__ (
34
- self ,
47
+ super ().__init__ (
35
48
url = url ,
36
49
headers = headers ,
37
50
storage_key = storage_key ,
You can’t perform that action at this time.
0 commit comments