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

supabase / supabase-py / 43038314079
98%

Build:
DEFAULT BRANCH: main
Ran 11 Nov 2026 02:25PM UTC
Jobs 35
Files 134
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

11 Nov 2026 02:25PM UTC coverage: 97.42% (-0.008%) from 97.428%
43038314079

push

github

web-flow
fix(realtime): send the access token on every join and push it on every session change (#2037)

## What

Realtime could run with an outdated token:

- The first channel join had no access token, because the token was only
stored after the first `set_auth()` from the heartbeat.
- A new session token reached the joined channels only through the
heartbeat loop, up to a full heartbeat interval later.
- A token that changed while a join was pending was never sent to that
channel. The channel was not joined yet when the token was pushed, and
was marked up to date afterwards.

Now every join carries the current token. On every session change,
including `INITIAL_SESSION`, `AsyncClient` sends the token to the joined
channels right away.

Builds on #2034, which made `AsyncClient.realtime` one cached
`RealtimeClient`.

## Changes

### `realtime`

- `RealtimeChannel.subscribe()` awaits the token callback after
connecting. The join then carries the current token, and channels that
are already joined get it too.
- A token passed as `set_auth(token)` is kept: the callback no longer
replaces it on joins, heartbeats and reconnects, until `set_auth()` is
called without a token. Before, the heartbeat replaced it with the
callback token within one interval, and with the callback now awaited on
every join, a channel joined after `set_auth(user_jwt)` would have used
the callback token instead. supabase-js behaves the same way, with its
manually set token.
- The heartbeat no longer logs "no token callback was registered" on
every beat for a client without a callback.
- After a join completes, the channel is sent the client's token if it
changed during the join. If that send fails, the failure is logged and
`subscribe()` still returns the join reply, since the server has already
joined the channel. The lost connection surfaces to the readers of the
channel. If `subscribe()` is cancelled during that send, the channel is
closed and left like a cancelled join.
- `set_auth()` se... (continued)

12802 of 13141 relevant lines covered (97.42%)

5.06 hits per line

Coverage Regressions

Lines Coverage ∆ File
6
97.74
-0.61% src/supabase/client.py
6
96.97
0.33% src/realtime/client.py
5
96.47
-0.4% src/realtime/channel.py
Jobs
ID Job ID Ran Files Coverage
1 supabase-py3.12-lowest-direct - 43038314079.1 11 Nov 2026 02:25PM UTC 20
99.31
GitHub Action Run
2 utils-py3.15-highest - 43038314079.2 11 Nov 2026 02:26PM UTC 24
99.66
GitHub Action Run
3 functions-py3.14-highest - 43038314079.3 11 Nov 2026 02:25PM UTC 14
99.12
GitHub Action Run
4 storage-py3.15-highest - 43038314079.4 11 Nov 2026 02:28PM UTC 24
95.99
GitHub Action Run
5 functions-py3.12-highest - 43038314079.5 11 Nov 2026 02:25PM UTC 14
99.12
GitHub Action Run
6 functions-py3.12-lowest-direct - 43038314079.6 11 Nov 2026 02:25PM UTC 14
99.12
GitHub Action Run
7 utils-py3.13-highest - 43038314079.7 11 Nov 2026 02:26PM UTC 24
99.67
GitHub Action Run
8 utils-py3.14-highest - 43038314079.8 11 Nov 2026 02:26PM UTC 24
99.66
GitHub Action Run
9 supabase-py3.15-highest - 43038314079.9 11 Nov 2026 02:26PM UTC 20
99.31
GitHub Action Run
10 auth-py3.15-highest - 43038314079.10 11 Nov 2026 02:27PM UTC 43
95.73
GitHub Action Run
11 realtime-py3.14-highest - 43038314079.11 11 Nov 2026 02:26PM UTC 10
97.37
GitHub Action Run
12 realtime-py3.13-highest - 43038314079.12 11 Nov 2026 02:26PM UTC 10
97.49
GitHub Action Run
13 storage-py3.12-lowest-direct - 43038314079.13 11 Nov 2026 02:27PM UTC 24
95.99
GitHub Action Run
14 supabase-py3.14-highest - 43038314079.14 11 Nov 2026 02:25PM UTC 20
99.31
GitHub Action Run
15 utils-py3.12-highest - 43038314079.15 11 Nov 2026 02:26PM UTC 24
99.67
GitHub Action Run
16 supabase-py3.13-highest - 43038314079.16 11 Nov 2026 02:25PM UTC 20
99.31
GitHub Action Run
17 auth-py3.12-highest - 43038314079.17 11 Nov 2026 02:27PM UTC 43
95.74
GitHub Action Run
18 functions-py3.15-highest - 43038314079.18 11 Nov 2026 02:25PM UTC 14
99.12
GitHub Action Run
19 auth-py3.14-highest - 43038314079.19 11 Nov 2026 02:27PM UTC 43
95.73
GitHub Action Run
20 auth-py3.12-lowest-direct - 43038314079.20 11 Nov 2026 02:27PM UTC 43
95.74
GitHub Action Run
21 postgrest-py3.12-lowest-direct - 43038314079.21 11 Nov 2026 02:27PM UTC 29
98.45
GitHub Action Run
22 postgrest-py3.14-highest - 43038314079.22 11 Nov 2026 02:27PM UTC 29
98.45
GitHub Action Run
23 utils-py3.12-lowest-direct - 43038314079.23 11 Nov 2026 02:26PM UTC 24
99.67
GitHub Action Run
24 storage-py3.13-highest - 43038314079.24 11 Nov 2026 02:26PM UTC 24
95.99
GitHub Action Run
25 auth-py3.13-highest - 43038314079.25 11 Nov 2026 02:27PM UTC 43
95.74
GitHub Action Run
26 supabase-py3.12-highest - 43038314079.26 11 Nov 2026 02:25PM UTC 20
99.31
GitHub Action Run
27 postgrest-py3.12-highest - 43038314079.27 11 Nov 2026 02:27PM UTC 29
98.45
GitHub Action Run
28 postgrest-py3.13-highest - 43038314079.28 11 Nov 2026 02:27PM UTC 29
98.45
GitHub Action Run
29 storage-py3.14-highest - 43038314079.29 11 Nov 2026 02:26PM UTC 24
95.99
GitHub Action Run
30 postgrest-py3.15-highest - 43038314079.30 11 Nov 2026 02:27PM UTC 29
98.45
GitHub Action Run
31 functions-py3.13-highest - 43038314079.31 11 Nov 2026 02:25PM UTC 14
99.12
GitHub Action Run
32 realtime-py3.12-highest - 43038314079.32 11 Nov 2026 02:26PM UTC 10
97.49
GitHub Action Run
33 realtime-py3.15-highest - 43038314079.33 11 Nov 2026 02:26PM UTC 10
97.37
GitHub Action Run
34 storage-py3.12-highest - 43038314079.34 11 Nov 2026 02:26PM UTC 24
95.99
GitHub Action Run
35 realtime-py3.12-lowest-direct - 43038314079.35 11 Nov 2026 02:26PM UTC 10
97.49
GitHub Action Run
Source Files on build 43038314079
  • Tree
  • List 134
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #43038314079
  • 20d29b64 on github
  • Prev Build on main (#43032356741)
  • Next Build on main (#43046355847)
  • 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