From c92c8ee0253fcbaaa3e44268482c0dc54382c1c7 Mon Sep 17 00:00:00 2001 From: Andrew Smith Date: Sun, 29 Sep 2024 22:41:12 +0000 Subject: [PATCH] fix: storage type for async client options --- supabase/lib/client_options.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/supabase/lib/client_options.py b/supabase/lib/client_options.py index d7079c3d..47498c13 100644 --- a/supabase/lib/client_options.py +++ b/supabase/lib/client_options.py @@ -3,6 +3,7 @@ from gotrue import ( AsyncMemoryStorage, + AsyncSupportedStorage, AuthFlowType, SyncMemoryStorage, SyncSupportedStorage, @@ -96,7 +97,7 @@ def replace( @dataclass class AsyncClientOptions(ClientOptions): - storage: SyncSupportedStorage = field(default_factory=AsyncMemoryStorage) + storage: AsyncSupportedStorage = field(default_factory=AsyncMemoryStorage) """A storage provider. Used to store the logged in session.""" def replace( @@ -105,7 +106,7 @@ def replace( headers: Optional[Dict[str, str]] = None, auto_refresh_token: Optional[bool] = None, persist_session: Optional[bool] = None, - storage: Optional[SyncSupportedStorage] = None, + storage: Optional[AsyncSupportedStorage] = None, realtime: Optional[RealtimeClientOptions] = None, postgrest_client_timeout: Union[ int, float, Timeout