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

supabase / supabase-flutter / 28852642300
86%

Build:
DEFAULT BRANCH: main
Ran 07 Jul 2026 08:33AM UTC
Jobs 8
Files 83
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

07 Jul 2026 08:30AM UTC coverage: 86.407% (+0.02%) from 86.383%
28852642300

push

github

web-flow
fix(gotrue): handle already-consented OAuth authorization responses (#1536)

> Stacked on #1535. Review/merge that one first.

## What kind of change does this PR introduce?

Bug fix

## What is the current behavior?

`getAuthorizationDetails` crashed with a `FormatException` when the
OAuth 2.1 server short-circuited the consent flow. This happens when a
user who already approved a client starts a new authorization for it:
the server returns a redirect-only body (`{"redirect_url":
"...?code=..."}`) with no user or client, which the parser rejected
because it required a user object.

## What is the new behavior?

`getAuthorizationDetails` now checks whether a `redirect_url` is present
returning `OAuthAuthorizationRedirectResponse` when it is present. When
the key isn't present the old `OAuthAuthorizationDetailsResponse` object
is returned.

Callers now switch on the result and forward the redirect instead of
losing it to an exception. Genuinely malformed detail bodies (no
redirect_url and no user) still throw, so validation isn't weakened.

## Additional context

BREAKING CHANGE: `getAuthorizationDetails` now returns the sealed
`OAuthAuthorizationResponse` instead of
`OAuthAuthorizationDetailsResponse`. Callers must switch/cast to access
client, user, scope and redirectUri.

11 of 11 new or added lines in 1 file covered. (100.0%)

4456 of 5157 relevant lines covered (86.41%)

3.99 hits per line

Jobs
ID Job ID Ran Files Coverage
6 supabase - 28852642300.6 07 Jul 2026 08:33AM UTC 15
80.69
GitHub Action Run
7 supabase_flutter - 28852642300.7 07 Jul 2026 08:33AM UTC 11
79.0
GitHub Action Run
8 gotrue - 28852642300.8 07 Jul 2026 08:35AM UTC 29
86.0
GitHub Action Run
3 postgrest - 28662400806.3 03 Jul 2026 01:08PM UTC 9
84.57
GitHub Action Run
6 functions_client - 28662400806.6 03 Jul 2026 01:06PM UTC 2
98.63
GitHub Action Run
7 realtime_client - 28670038615.7 03 Jul 2026 03:36PM UTC 11
89.06
GitHub Action Run
5 storage_client - 28662400806.5 03 Jul 2026 01:08PM UTC 5
93.26
GitHub Action Run
1 yet_another_json_isolate - 28662400806.1 03 Jul 2026 01:05PM UTC 1
77.78
GitHub Action Run
Source Files on build 28852642300
  • Tree
  • List 83
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #28852642300
  • 22d41234 on github
  • Prev Build on main (#28850807157)
  • Next Build on main (#28854635370)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc