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

supabase / supabase-flutter / 38905520141
92%

Build:
DEFAULT BRANCH: main
Ran 16 Oct 2026 01:09PM UTC
Jobs 11
Files 161
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

16 Oct 2026 01:07PM UTC coverage: 91.991%. Remained the same
38905520141

push

github

web-flow
fix(auth)!: throw AuthSessionMissingException when a token response has no session (#1970)

## What

The auth methods that always return a `Session` now throw
`AuthSessionMissingException` when the server response carries no
session, instead of a plain `AuthException` without an `errorCode`.
Callers can catch the case by type or by `errorCode` (`session_missing`)
rather than matching on the message.

This covers every method backed by the shared helper:
`signInAnonymously`, `signInWithPassword`, `signInWithIdToken`,
`signInWithWeb3`, `linkIdentityWithIdToken`,
`passkey.verifyAuthentication` (and with it `signInWithPasskey` and
`signInWithRestoreKey`) and `refreshSession`.

`setInitialSession` and `recoverSession`, which already reported
`session_missing` for a stored session missing data, now throw the same
type too, so `on AuthSessionMissingException` catches every
`session_missing` failure.

The exception also carries the `requestId` of the response, so these
call sites now use `requestWithResponse` to hand the helper the response
headers.

## Breaking change

`AuthSessionMissingException` takes its `message` as a named parameter,
next to the new `requestId`, in line with the other auth exceptions.
`MIGRATION.md` is updated in the existing sections that described these
methods throwing an `AuthException` and `AuthSessionMissingException`
being raised without a request.

Refresh behavior is unchanged: the exception is still a non-retryable
`AuthException`, so a refresh that gets no session back signs out as
before.

## Tests

`missing_session_response_test.dart` now covers every method above and
asserts the type, `errorCode` and `requestId`. The `refreshSession` case
starts signed in and checks that it signs out with
`SignOutReason.sessionExpired`.

Fixes SDK-2260

12 of 13 new or added lines in 3 files covered. (92.31%)

43 existing lines in 2 files now uncovered.

9648 of 10488 relevant lines covered (91.99%)

5.44 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
88.97
0.0% packages/supabase_auth/lib/src/auth_client.dart

Coverage Regressions

Lines Coverage ∆ File
41
88.97
0.0% packages/supabase_auth/lib/src/auth_client.dart
2
91.11
0.0% packages/supabase_auth/lib/src/types/auth_exception.dart
Jobs
ID Job ID Ran Files Coverage
8 iceberg - 38905520141.8 16 Oct 2026 01:09PM UTC 6
71.32
GitHub Action Run
9 supabase_typegen - 38905520141.9 16 Oct 2026 01:10PM UTC 6
96.25
GitHub Action Run
10 supabase_functions - 38905520141.10 16 Oct 2026 01:10PM UTC 4
93.28
GitHub Action Run
11 supabase_flutter - 38905520141.11 16 Oct 2026 01:10PM UTC 15
80.58
GitHub Action Run
11 yet_another_json_isolate - 38891534378.11 16 Oct 2026 11:07AM UTC 1
98.44
GitHub Action Run
9 postgrest - 38904765807.9 16 Oct 2026 01:06PM UTC 32
94.3
GitHub Action Run
10 supabase_realtime - 38904765807.10 16 Oct 2026 01:06PM UTC 14
90.92
GitHub Action Run
7 supabase - 38904765807.7 16 Oct 2026 01:06PM UTC 17
95.11
GitHub Action Run
8 supabase_auth - 38904765807.8 16 Oct 2026 01:08PM UTC 34
92.82
GitHub Action Run
11 supabase_storage - 38904765807.11 16 Oct 2026 01:05PM UTC 9
98.47
GitHub Action Run
3 supabase_common - 38891534378.3 16 Oct 2026 11:07AM UTC 23
87.92
GitHub Action Run
Source Files on build 38905520141
  • Tree
  • List 161
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #38905520141
  • 373fbd49 on github
  • Prev Build on main (#38904765807)
  • Next Build on main (#38905844892)
  • 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