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

Commit 758fb2f

Browse files
authored
Merge pull request #220 from supabase-community/j0/fix_timer_units
fix: adjust timer units and drop * 1000
2 parents b79e2a8 + 78ed6d2 commit 758fb2f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

gotrue/_async/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ async def _save_session(self, *, session: Session) -> None:
622622
expire_in = session.expires_at - time_now
623623
refresh_duration_before_expires = 60 if expire_in > 60 else 0.5
624624
self._start_auto_refresh_token(
625-
value=(expire_in - refresh_duration_before_expires) * 1000
625+
value=(expire_in - refresh_duration_before_expires)
626626
)
627627
if self.persist_session and session.expires_at:
628628
await self._persist_session(session=session)

gotrue/_sync/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ def _save_session(self, *, session: Session) -> None:
614614
expire_in = session.expires_at - time_now
615615
refresh_duration_before_expires = 60 if expire_in > 60 else 0.5
616616
self._start_auto_refresh_token(
617-
value=(expire_in - refresh_duration_before_expires) * 1000
617+
value=(expire_in - refresh_duration_before_expires)
618618
)
619619
if self.persist_session and session.expires_at:
620620
self._persist_session(session=session)

0 commit comments

Comments
 (0)