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

supabase / supabase-flutter / 32228326353
89%

Build:
DEFAULT BRANCH: main
Ran 19 Aug 2026 07:34AM UTC
Jobs 10
Files 107
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

19 Aug 2026 07:32AM UTC coverage: 88.436% (+0.01%) from 88.423%
32228326353

push

github

web-flow
fix(gotrue)!: assert asyncStorage is provided for PKCE flow in the constructor (#1489)

**Root cause**
When `flowType` is `AuthFlowType.pkce` (the default) and no
`asyncStorage` is provided, calling `getOAuthSignInUrl()` or
`getLinkIdentityUrl()` fails late at call time. To provide a better
developer experience and fail fast, the misconfiguration should be
validated up front in the constructor.

**Fix**
Added an `assert` in the `GoTrueClient` constructor to validate that
`asyncStorage != null` if `flowType == AuthFlowType.pkce`.

**Tests**
- Added a unit test in `gotrue/test/client_test.dart` to verify that
GoTrueClient throws an `AssertionError` if `asyncStorage` is missing
when using PKCE flow.
- Updated all test suites in `gotrue` and `supabase` packages to pass a
mock storage or specify `implicit` flow type where no storage was
configured.

Fixes #1446

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

* **New Features**
  * Added in-memory storage for PKCE code verifiers.
* Supabase clients now provide in-memory PKCE storage by default for
same-process authentication flows.
* Added guidance for configuring persistent storage when PKCE values
must survive app restarts.

* **Bug Fixes**
* PKCE authentication now validates that required storage is configured.
  * OAuth sign-in URLs correctly include a PKCE code challenge.

* **Tests**
  * Expanded coverage for PKCE setup and in-memory storage behavior.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Lukas Klingsbo <lukas.klingsbo@gmail.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

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

7 existing lines in 1 file now uncovered.

5789 of 6546 relevant lines covered (88.44%)

4.2 hits per line

Coverage Regressions

Lines Coverage ∆ File
7
95.48
0.0% packages/supabase/lib/src/supabase_client.dart
Jobs
ID Job ID Ran Files Coverage
9 supabase_flutter - 32228326353.9 19 Aug 2026 07:34AM UTC 10
81.87
GitHub Action Run
10 supabase_auth - 32228326353.10 19 Aug 2026 07:37AM UTC 28
89.79
GitHub Action Run
2 yet_another_json_isolate - 32034091672.2 17 Aug 2026 01:16PM UTC 1
94.44
GitHub Action Run
4 supabase_common - 32034091672.4 17 Aug 2026 01:16PM UTC 16
99.48
GitHub Action Run
3 supabase_functions - 32034091672.3 17 Aug 2026 01:16PM UTC 3
97.75
GitHub Action Run
9 supabase_realtime - 32036696049.9 17 Aug 2026 01:51PM UTC 12
90.19
GitHub Action Run
7 postgrest - 32183188729.7 18 Aug 2026 08:40PM UTC 11
84.92
GitHub Action Run
10 supabase - 32183188729.10 18 Aug 2026 08:41PM UTC 13
91.24
GitHub Action Run
5 iceberg - 32034091672.5 17 Aug 2026 01:16PM UTC 5
68.62
GitHub Action Run
6 supabase_storage - 32034091672.6 17 Aug 2026 01:18PM UTC 8
97.18
GitHub Action Run
Source Files on build 32228326353
  • Tree
  • List 107
  • Changed 16
  • Source Changed 16
  • Coverage Changed 15
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #32228326353
  • 30729cc9 on github
  • Prev Build on main (#32183188729)
  • Next Build on main (#32246004187)
  • 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