Skip to content

Commit 28a9c9f

Browse files
authored
fix: storage type for async client options (#944)
1 parent 99e24d8 commit 28a9c9f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

supabase/lib/client_options.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
from gotrue import (
55
AsyncMemoryStorage,
6+
AsyncSupportedStorage,
67
AuthFlowType,
78
SyncMemoryStorage,
89
SyncSupportedStorage,
@@ -96,7 +97,7 @@ def replace(
9697

9798
@dataclass
9899
class AsyncClientOptions(ClientOptions):
99-
storage: SyncSupportedStorage = field(default_factory=AsyncMemoryStorage)
100+
storage: AsyncSupportedStorage = field(default_factory=AsyncMemoryStorage)
100101
"""A storage provider. Used to store the logged in session."""
101102

102103
def replace(
@@ -105,7 +106,7 @@ def replace(
105106
headers: Optional[Dict[str, str]] = None,
106107
auto_refresh_token: Optional[bool] = None,
107108
persist_session: Optional[bool] = None,
108-
storage: Optional[SyncSupportedStorage] = None,
109+
storage: Optional[AsyncSupportedStorage] = None,
109110
realtime: Optional[RealtimeClientOptions] = None,
110111
postgrest_client_timeout: Union[
111112
int, float, Timeout

0 commit comments

Comments
 (0)