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

supabase / supabase-flutter / 41831877457
94%

Build:
DEFAULT BRANCH: main
Ran 04 Nov 2026 12:46PM UTC
Jobs 12
Files 193
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 12:44PM UTC coverage: 94.131%. Remained the same
41831877457

push

github

web-flow
fix(supabase_flutter)!: only take auth redirects from deep links by default (#2126)

## What changed

By default, `supabase_flutter` now only takes deep links that are auth
redirects:

- a link with an `access_token` (implicit flow)
- a link with at least two of `error`, `error_code` and
`error_description`
- a link with a `code`, when a PKCE flow started by this client waits
for it, or when the link carries the `sb_flow_id` parameter the client
appends to its redirects

`detectSessionInUriPredicate` still overrides the default. A new
internal `AuthClient.hasPendingPkceFlow()` reports whether a code
verifier is stored.

## Why

The default treated any link with `code`, `error`, `error_code` or
`error_description` as an auth callback. An app link such as
`myapp://invite?code=X` started a code exchange and put an
`AuthException` on `onAuthStateChange`. The Swift SDK is fixing the same
kind of overly broad check in supabase/supabase-swift#1708.

## Server evidence (supabase/auth)

Every error redirect carries `error_description` with `error` or
`error_code`:

- `redirectErrors` / `getErrorQueryString` in `internal/api/external.go`
sets `error` and `error_description`, plus `error_code` for HTTP errors.
- The verify error redirect in `internal/api/verify.go` sets
`error_code` and `error_description`, plus `error` when the status maps
to an OAuth error.

## Reviewer notes

- A magic link opened with no pending flow, for example on another
device, used to surface "Code verifier could not be found". It is now
left to the app, unless it carries `sb_flow_id`. `MIGRATION.md` has a
section on this, and the README and the `detectSessionInUriPredicate`
docs describe the new default.
- A link with only one error parameter, such as `?error=1`, is no longer
claimed. No auth server redirect has this shape.
- `hasPendingPkceFlow` is `@internal`, so it needs no entry in
`sdk-compliance.yaml`.

## Tests

- `deep_link_test.dart`: unrelated links with `code` (query and
fra... (continued)

12543 of 13325 relevant lines covered (94.13%)

6.64 hits per line

Coverage Regressions

Lines Coverage ∆ File
48
93.15
0.0% packages/supabase_auth/lib/src/auth_client.dart
5
95.45
0.0% packages/supabase_flutter/lib/src/supabase_auth.dart
1
92.86
0.0% packages/supabase_flutter/lib/src/flutter_auth_client_options.dart
Jobs
ID Job ID Ran Files Coverage
10 iceberg - 41831877457.10 04 Nov 2026 12:46PM UTC 7
99.72
GitHub Action Run
11 supabase_test - 41831877457.11 04 Nov 2026 12:46PM UTC 9
93.55
GitHub Action Run
12 supabase_functions - 41831877457.12 04 Nov 2026 12:46PM UTC 4
94.01
GitHub Action Run
2 yet_another_json_isolate - 41623445554.2 03 Nov 2026 10:58AM UTC 2
98.65
GitHub Action Run
3 supabase_storage - 41623445554.3 03 Nov 2026 11:00AM UTC 13
95.96
GitHub Action Run
12 supabase - 41623445554.12 03 Nov 2026 11:01AM UTC 21
94.52
GitHub Action Run
6 supabase_typegen - 41623445554.6 03 Nov 2026 11:00AM UTC 6
94.44
GitHub Action Run
9 supabase_auth - 41623445554.9 03 Nov 2026 11:02AM UTC 34
94.21
GitHub Action Run
8 postgrest - 41623445554.8 03 Nov 2026 11:01AM UTC 30
92.88
GitHub Action Run
5 supabase_realtime - 41623445554.5 03 Nov 2026 11:00AM UTC 14
92.0
GitHub Action Run
1 supabase_flutter - 41623445554.1 03 Nov 2026 10:59AM UTC 16
89.03
GitHub Action Run
4 supabase_common - 41623445554.4 03 Nov 2026 10:58AM UTC 37
94.39
GitHub Action Run
Source Files on build 41831877457
  • Tree
  • List 193
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #41831877457
  • 1e1448ef on github
  • Prev Build on main (#41623445554)
  • Next Build on main (#41832255342)
  • 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