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

supabase / supabase-flutter / 43396554937
94%

Build:
DEFAULT BRANCH: main
Ran 13 Nov 2026 08:53AM UTC
Jobs 12
Files 197
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

13 Nov 2026 08:51AM UTC coverage: 94.391% (-0.08%) from 94.471%
43396554937

push

github

web-flow
fix(supabase)!: remove the channels and resumable uploads of a user on sign-out (#2162)

## Summary

`signOut` removed the session and the PKCE verifiers only. The resumable
upload records (signed token, path and metadata) stayed in storage, and
open realtime channels kept the listeners and buffers of the previous
user, so the next user of the device could see that data.

`SupabaseClient` now reacts to every `signedOut` event by unsubscribing
and removing every realtime channel and cancelling every resumable
upload and removing its record. That covers `signOut()`, a session whose
refresh token was rejected, and a sign-out in another tab.

## Changes

- `SupabaseClient` listens for `AuthChangeEvent.signedOut`, unsubscribes
the channels registered at that moment, and calls the new `@internal`
`SupabaseStorageClient.forgetResumableUploads()`. It does not call
`removeAllChannels()`, whose final `disconnect()` would also kill a
channel the app subscribes from its own `AuthSignedOut` listener. The
socket closes through `disconnectOnEmptyChannelsAfter` once no channel
is left. The channels are removed before realtime switches back to the
publishable key, so the access token is not pushed to channels that are
leaving.
- `ResumableUploadRegistry.forgetAll()` cancels every live upload and
removes the stored record key, including the entries it could not parse.
It does not send a tus `DELETE`, because the session is already gone and
the server would reject the request or expire the upload anyway. A
cancelled upload's `done` completes with
`ResumableUploadCancelledException`, as with `cancel()`.
- The registry counts its `forgetAll()` calls, so an upload from before
a sign-out cannot continue after it. A `resumeUpload()` that was reading
its record during the sign-out throws, as it does for an unknown id. A
failed upload whose record was already dropped, and that the app resumes
through its handle, is cancelled.
- `ResumableUpload.cancel()` and the new private `_... (continued)

28 of 29 new or added lines in 3 files covered. (96.55%)

45 existing lines in 5 files now uncovered.

13244 of 14031 relevant lines covered (94.39%)

7.04 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
98.09
-0.42% packages/supabase/lib/src/supabase_client.dart

Coverage Regressions

Lines Coverage ∆ File
23
88.89
0.68% packages/supabase_realtime/lib/src/types.dart
10
95.73
0.01% packages/postgrest/lib/src/postgrest_builder.dart
7
98.52
1.06% packages/supabase_realtime/lib/src/realtime_channel.dart
3
73.33
-20.0% packages/supabase_realtime/lib/src/constants.dart
2
96.92
-1.46% packages/supabase_realtime/lib/src/push.dart
Jobs
ID Job ID Ran Files Coverage
3 iceberg - 43396554937.3 13 Nov 2026 08:53AM UTC 7
99.72
GitHub Action Run
4 supabase_functions - 43396554937.4 13 Nov 2026 08:53AM UTC 4
94.48
GitHub Action Run
5 supabase_flutter - 43396554937.5 13 Nov 2026 08:54AM UTC 16
89.16
GitHub Action Run
6 supabase_test - 43396554937.6 13 Nov 2026 08:54AM UTC 9
93.83
GitHub Action Run
7 supabase_typegen - 43396554937.7 13 Nov 2026 08:55AM UTC 7
95.53
GitHub Action Run
8 supabase - 43396554937.8 13 Nov 2026 08:55AM UTC 22
94.56
GitHub Action Run
9 supabase_realtime - 43396554937.9 13 Nov 2026 08:55AM UTC 16
92.23
GitHub Action Run
10 supabase_storage - 43396554937.10 13 Nov 2026 08:55AM UTC 13
95.94
GitHub Action Run
11 postgrest - 43396554937.11 13 Nov 2026 08:55AM UTC 30
93.16
GitHub Action Run
12 supabase_auth - 43396554937.12 13 Nov 2026 08:56AM UTC 33
94.44
GitHub Action Run
8 supabase_common - 43396295816.8 13 Nov 2026 08:51AM UTC 38
94.41
GitHub Action Run
10 yet_another_json_isolate - 43222394842.10 12 Nov 2026 12:57PM UTC 2
98.65
GitHub Action Run
Source Files on build 43396554937
  • Tree
  • List 197
  • Changed 17
  • Source Changed 16
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #43396554937
  • 87dfe23d on github
  • Prev Build on main (#43396295816)
  • Next Build on main (#43406437180)
  • 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