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

supabase / supabase-flutter / 39426381035
92%

Build:
DEFAULT BRANCH: main
Ran 20 Oct 2026 12:59PM UTC
Jobs 11
Files 164
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

20 Oct 2026 12:57PM UTC coverage: 92.002% (-0.04%) from 92.041%
39426381035

push

github

web-flow
fix!: throw AccessTokenException when the accessToken callback fails (#1989)

Fixes [SDK-2279](https://linear.app/supabase/issue/SDK-2279).

When the `accessToken` callback threw, postgrest wrapped an `Exception`
in a `PostgrestTransportException`, which reads like a network error and
was retried as one. A thrown `Error` escaped unwrapped. Storage and
functions also reported the failure as a transport exception.

The token is now resolved through `resolveAccessToken` in
`supabase_common`, used by both `AccessTokenClient` and the
`AuthHttpClient` of `SupabaseClient`. A callback failure becomes an
`AccessTokenException` with the original error in `cause`, thrown before
anything is sent. It extends `SupabaseException`, so every client's
catch path rethrows it unchanged and none of the retry loops treat it as
retryable. An exception that already is a `SupabaseException`, such as
an `AuthException` from a failed session refresh, is still thrown as is.

`AccessTokenException` is exported from postgrest, storage and
functions, and therefore from supabase and supabase_flutter.
`MIGRATION.md` gets a section, since a catch of the transport exception
no longer matches a token failure.

### Tests

- `supabase_common`: a thrown error is wrapped, a `SupabaseException`
passes through, and nothing is sent in either case.
- postgrest, storage and functions: a throwing callback fails with
`AccessTokenException`, reaches no transport, and with retries enabled
is called once.
- supabase: the existing token-failure test now asserts
`AccessTokenException`.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Bug Fixes**
* Access-token callback failures now stop requests before they are sent
and are not retried.
* Failures are reported as `AccessTokenException` with the original
error preserved.
  * Existing Supabase exceptions continue to be rethrown unchanged.

* **New Features**
* `AccessTokenException` is now publicl... (continued)

8 of 12 new or added lines in 3 files covered. (66.67%)

15 existing lines in 2 files now uncovered.

10192 of 11078 relevant lines covered (92.0%)

5.5 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
78.95
-21.05% packages/supabase_common/lib/src/supabase_exception.dart

Coverage Regressions

Lines Coverage ∆ File
12
86.52
-0.08% packages/supabase_common/lib/src/idle_timeout.dart
3
85.8
-1.78% packages/supabase/lib/src/supabase_stream_builder.dart
Jobs
ID Job ID Ran Files Coverage
2 supabase - 39426381035.2 20 Oct 2026 01:02PM UTC 17
93.84
GitHub Action Run
3 supabase_typegen - 39426381035.3 20 Oct 2026 01:00PM UTC 6
96.32
GitHub Action Run
4 supabase_common - 39426381035.4 20 Oct 2026 12:59PM UTC 24
87.62
GitHub Action Run
5 supabase_flutter - 39426381035.5 20 Oct 2026 01:00PM UTC 16
80.85
GitHub Action Run
6 postgrest - 39426381035.6 20 Oct 2026 01:02PM UTC 32
93.92
GitHub Action Run
7 supabase_storage - 39426381035.7 20 Oct 2026 01:01PM UTC 10
96.26
GitHub Action Run
8 supabase_realtime - 39426381035.8 20 Oct 2026 01:02PM UTC 14
91.17
GitHub Action Run
9 supabase_functions - 39426381035.9 20 Oct 2026 12:59PM UTC 4
93.28
GitHub Action Run
10 iceberg - 39426381035.10 20 Oct 2026 12:59PM UTC 6
71.32
GitHub Action Run
11 supabase_auth - 39426381035.11 20 Oct 2026 01:03PM UTC 34
93.38
GitHub Action Run
7 yet_another_json_isolate - 39234881764.7 19 Oct 2026 10:06AM UTC 1
98.44
GitHub Action Run
Source Files on build 39426381035
  • Tree
  • List 164
  • Changed 6
  • Source Changed 5
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #39426381035
  • 069478cd on github
  • Prev Build on main (#39426197275)
  • Next Build on main (#39428007061)
  • 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