Skip to content

Commit 732e931

Browse files
fix: Add AsyncMemoryStorage to AsyncClient options
Co-authored-by: Andrew Smith <[email protected]>
1 parent 272349e commit 732e931

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

supabase/_async/client.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import re
22
from typing import Any, Dict, Union
33

4+
from gotrue._async.storage import AsyncMemoryStorage
45
from gotrue.types import AuthChangeEvent, Session
56
from httpx import Timeout
67
from postgrest import (
@@ -31,7 +32,7 @@ def __init__(
3132
self,
3233
supabase_url: str,
3334
supabase_key: str,
34-
options: ClientOptions = ClientOptions(),
35+
options: ClientOptions = ClientOptions(storage=AsyncMemoryStorage()),
3536
):
3637
"""Instantiate the client.
3738
@@ -268,7 +269,7 @@ def _listen_to_auth_events(self, event: AuthChangeEvent, session: Session):
268269
async def create_client(
269270
supabase_url: str,
270271
supabase_key: str,
271-
options: ClientOptions = ClientOptions(),
272+
options: ClientOptions = ClientOptions(storage=AsyncMemoryStorage()),
272273
) -> AsyncClient:
273274
"""Create client function to instantiate supabase client like JS runtime.
274275

0 commit comments

Comments
 (0)