Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Commit 45cfe25

Browse files
authored
fix: add await to async call for anonymous sign in request (#532)
2 parents b194f07 + 412449a commit 45cfe25

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

supabase_auth/_async/gotrue_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,13 +159,13 @@ async def sign_in_anonymously(
159159
"""
160160
Creates a new anonymous user.
161161
"""
162-
self._remove_session()
162+
await self._remove_session()
163163
if credentials is None:
164164
credentials = {"options": {}}
165165
options = credentials.get("options", {})
166166
data = options.get("data") or {}
167167
captcha_token = options.get("captcha_token")
168-
response = self._request(
168+
response = await self._request(
169169
"POST",
170170
"signup",
171171
body={
@@ -177,7 +177,7 @@ async def sign_in_anonymously(
177177
xform=parse_auth_response,
178178
)
179179
if response.session:
180-
self._save_session(response.session)
180+
await self._save_session(response.session)
181181
self._notify_all_subscribers("SIGNED_IN", response.session)
182182
return response
183183

0 commit comments

Comments
 (0)