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

supabase / supabase-flutter / 41831877457 / 10
94%
main: 94%

Build:
DEFAULT BRANCH: main
Ran 04 Nov 2026 12:46PM UTC
Files 7
Run time 0s
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: 99.72%. Remained the same
41831877457.10

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)

713 of 715 relevant lines covered (99.72%)

1.59 hits per line

Source Files on job iceberg - 41831877457.10
  • Tree
  • List 7
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 41831877457
  • 1e1448ef on github
  • Prev Job for on main (#41623445554.10)
  • Next Job for on main (#41832255342.6)
  • 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