• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / supabase-py / 41863663291
98%

Build:
DEFAULT BRANCH: main
Ran 04 Nov 2026 04:03PM UTC
Jobs 36
Files 104
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

04 Nov 2026 04:02PM UTC coverage: 94.519% (+0.006%) from 94.513%
41863663291

push

github

web-flow
fix(auth): start refresh token retry backoff at 200 milliseconds (#1978)

## What

When a token refresh fails with `AuthRetryableError`, the auth session
manager schedules the next attempt with `RETRY_INTERVAL ** (2 *
(network_retries - 1))` milliseconds. With `RETRY_INTERVAL = 2`, that
gives 1 ms, 4 ms, 16 ms, 64 ms and so on up to about 65 s. The first
retries fire almost at once, and the last ones wait far too long.

This PR replaces the four copies of that formula (`recover_and_refresh`
and `refresh_token_function`, in both the async and sync session
managers) with one helper, `_retry_delay`, that returns `0.2 * 2 **
(attempt - 1)` seconds. That is the same backoff as gotrue-js: 200 ms,
400 ms, 800 ms and so on. The delay is capped at 30 s, the same cap
supabase-flutter uses, so the last retry waits 30 s instead of 51.2 s.

The `RETRY_INTERVAL = 2 # deciseconds` constant is replaced by
`RETRY_BASE_DELAY = 0.2 # seconds` and `RETRY_MAX_DELAY = 30 # seconds`.

## Tests

`tests/test_session.py` checks the delays the helper produces, including
the cap.

SDK-2797

8415 of 8903 relevant lines covered (94.52%)

5.75 hits per line

Coverage Regressions

Lines Coverage ∆ File
45
79.73
0.14% src/supabase_auth/session.py
Jobs
ID Job ID Ran Files Coverage
1 auth-py3.15-highest - 41863663291.1 04 Nov 2026 04:04PM UTC 36
91.53
GitHub Action Run
2 storage-py3.12-highest - 41863663291.2 04 Nov 2026 04:04PM UTC 22
93.24
GitHub Action Run
3 supabase-py3.11-highest - 41863663291.3 04 Nov 2026 04:03PM UTC 22
93.46
GitHub Action Run
4 functions-py3.13-highest - 41863663291.4 04 Nov 2026 04:03PM UTC 14
97.48
GitHub Action Run
5 realtime-py3.13-highest - 41863663291.5 04 Nov 2026 04:04PM UTC 8
96.04
GitHub Action Run
6 auth-py3.13-highest - 41863663291.6 04 Nov 2026 04:04PM UTC 36
91.55
GitHub Action Run
7 functions-py3.11-highest - 41863663291.7 04 Nov 2026 04:03PM UTC 14
97.48
GitHub Action Run
8 auth-py3.11-highest - 41863663291.8 04 Nov 2026 04:04PM UTC 36
91.55
GitHub Action Run
9 functions-py3.15-highest - 41863663291.9 04 Nov 2026 04:03PM UTC 14
97.48
GitHub Action Run
10 auth-py3.12-highest - 41863663291.10 04 Nov 2026 04:04PM UTC 36
91.55
GitHub Action Run
11 postgrest-py3.15-highest - 41863663291.11 04 Nov 2026 04:04PM UTC 24
97.5
GitHub Action Run
12 realtime-py3.15-highest - 41863663291.12 04 Nov 2026 04:04PM UTC 8
95.38
GitHub Action Run
13 storage-py3.11-highest - 41863663291.13 04 Nov 2026 04:04PM UTC 22
93.24
GitHub Action Run
14 realtime-py3.11-lowest-direct - 41863663291.14 04 Nov 2026 04:04PM UTC 8
96.19
GitHub Action Run
15 storage-py3.11-lowest-direct - 41863663291.15 04 Nov 2026 04:04PM UTC 22
93.24
GitHub Action Run
16 storage-py3.13-highest - 41863663291.16 04 Nov 2026 04:04PM UTC 22
93.24
GitHub Action Run
17 functions-py3.14-highest - 41863663291.17 04 Nov 2026 04:03PM UTC 14
97.48
GitHub Action Run
18 supabase-py3.12-highest - 41863663291.18 04 Nov 2026 04:03PM UTC 22
93.46
GitHub Action Run
19 supabase-py3.11-lowest-direct - 41863663291.19 04 Nov 2026 04:03PM UTC 22
93.46
GitHub Action Run
20 storage-py3.14-highest - 41863663291.20 04 Nov 2026 04:04PM UTC 22
93.21
GitHub Action Run
21 postgrest-py3.13-highest - 41863663291.21 04 Nov 2026 04:04PM UTC 24
97.51
GitHub Action Run
22 auth-py3.11-lowest-direct - 41863663291.22 04 Nov 2026 04:04PM UTC 36
91.55
GitHub Action Run
23 auth-py3.14-highest - 41863663291.23 04 Nov 2026 04:04PM UTC 36
91.53
GitHub Action Run
24 functions-py3.11-lowest-direct - 41863663291.24 04 Nov 2026 04:03PM UTC 14
97.48
GitHub Action Run
25 postgrest-py3.11-lowest-direct - 41863663291.25 04 Nov 2026 04:04PM UTC 24
97.51
GitHub Action Run
26 postgrest-py3.14-highest - 41863663291.26 04 Nov 2026 04:04PM UTC 24
97.5
GitHub Action Run
27 supabase-py3.13-highest - 41863663291.27 04 Nov 2026 04:03PM UTC 22
93.46
GitHub Action Run
28 functions-py3.12-highest - 41863663291.28 04 Nov 2026 04:03PM UTC 14
97.48
GitHub Action Run
29 postgrest-py3.11-highest - 41863663291.29 04 Nov 2026 04:04PM UTC 24
97.51
GitHub Action Run
30 supabase-py3.15-highest - 41863663291.30 04 Nov 2026 04:04PM UTC 22
93.43
GitHub Action Run
31 realtime-py3.11-highest - 41863663291.31 04 Nov 2026 04:04PM UTC 8
96.19
GitHub Action Run
32 realtime-py3.14-highest - 41863663291.32 04 Nov 2026 04:04PM UTC 8
95.54
GitHub Action Run
33 supabase-py3.14-highest - 41863663291.33 04 Nov 2026 04:03PM UTC 22
93.43
GitHub Action Run
34 postgrest-py3.12-highest - 41863663291.34 04 Nov 2026 04:04PM UTC 24
97.51
GitHub Action Run
35 storage-py3.15-highest - 41863663291.35 04 Nov 2026 04:05PM UTC 22
93.21
GitHub Action Run
36 realtime-py3.12-highest - 41863663291.36 04 Nov 2026 04:04PM UTC 8
96.04
GitHub Action Run
Source Files on build 41863663291
  • Tree
  • List 104
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #41863663291
  • 394a6902 on github
  • Prev Build on main (#41858145812)
  • Next Build on main (#41863744046)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc