From 7548d0290199bdb1053564b953932c53aabdea29 Mon Sep 17 00:00:00 2001 From: Pau Ramon Revilla Date: Tue, 28 Nov 2023 13:05:02 +0100 Subject: [PATCH] fix: remove unnecessary async to on_auth_state_change Somehow this got reverted on a refactor (https://github.com/supabase-community/gotrue-py/commit/e7ebc64112d970673265c7b314a1e8820fc0f7e1) This causes problems when using the supabase client, since it's not being awaited: https://github.com/supabase-community/supabase-py/blob/main/supabase/_async/client.py#L90 --- gotrue/_async/gotrue_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gotrue/_async/gotrue_client.py b/gotrue/_async/gotrue_client.py index 378801eb..3a27210f 100644 --- a/gotrue/_async/gotrue_client.py +++ b/gotrue/_async/gotrue_client.py @@ -500,7 +500,7 @@ async def sign_out(self) -> None: await self._remove_session() self._notify_all_subscribers("SIGNED_OUT", None) - async def on_auth_state_change( + def on_auth_state_change( self, callback: Callable[[AuthChangeEvent, Union[Session, None]], None], ) -> Subscription: