From 23ce83aabd7eb99b8b90422c981deb9e25655801 Mon Sep 17 00:00:00 2001 From: Canyon Robins Date: Tue, 8 Oct 2024 17:33:28 -0700 Subject: [PATCH] Fix _save_session's default behavior --- supabase_auth/_sync/gotrue_client.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/supabase_auth/_sync/gotrue_client.py b/supabase_auth/_sync/gotrue_client.py index 27fc723e..9ce1c680 100644 --- a/supabase_auth/_sync/gotrue_client.py +++ b/supabase_auth/_sync/gotrue_client.py @@ -1011,8 +1011,7 @@ def _refresh_access_token(self, refresh_token: str) -> AuthResponse: ) def _save_session(self, session: Session) -> None: - if not self._persist_session: - self._in_memory_session = session + self._in_memory_session = session expire_at = session.expires_at if expire_at: time_now = round(time())