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

supabase / supabase-flutter / 23846773811
81%

Build:
DEFAULT BRANCH: main
Ran 01 Apr 2026 11:46AM UTC
Jobs 1
Files 70
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

01 Apr 2026 11:40AM UTC coverage: 81.054% (+0.2%) from 80.841%
23846773811

push

github

web-flow
feat(auth): add optional accessToken parameter to setSession() (#1327)

* feat(auth): add optional accessToken parameter to setSession()

Mirrors the JS SDK behaviour: when both tokens are supplied and the
access token has not yet expired, the session is restored directly
(via a getUser() call) without an extra /token refresh round-trip.
If the access token is expired or omitted the existing _callRefreshToken
path is preserved unchanged.

- Valid, non-expired accessToken: calls getUser(accessToken), builds
  Session locally, fires AuthChangeEvent.signedIn.
- Expired accessToken: falls back to _callRefreshToken(refreshToken).
- Malformed accessToken: throws AuthInvalidJwtException.
- Empty accessToken: throws AuthSessionMissingException.

Linear: SDK-784

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* docs: clarify setSession network behavior in doc comment (#1332)

* Initial plan

* docs: clarify setSession skips /token refresh but still calls /user

Co-authored-by: grdsdev <5923044+grdsdev@users.noreply.github.com>
Agent-Logs-Url: https://github.com/supabase/supabase-flutter/sessions/db643f38-73ec-4b87-92e3-9d995d319a73

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: grdsdev <5923044+grdsdev@users.noreply.github.com>

* fix(auth): apply expiryMargin buffer to hasExpired check in setSession() (#1331)

* Initial plan

* fix(auth): apply expiryMargin buffer to hasExpired check in setSession()

Co-authored-by: grdsdev <5923044+grdsdev@users.noreply.github.com>
Agent-Logs-Url: https://github.com/supabase/supabase-flutter/sessions/80e8e775-47d3-4e08-aa75-07f715c27411

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: grdsdev <5923044+grdsdev@users.noreply.github.com>

* fix(gotrue): address setSession review feedback

- Use exp - iat for expiresIn (full token lifetime, not remaining seconds)
- Deduplicate concurrent fas... (continued)

17 of 18 new or added lines in 1 file covered. (94.44%)

3444 of 4249 relevant lines covered (81.05%)

2.85 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
66.29
2.2% packages/gotrue/lib/src/gotrue_client.dart
Jobs
ID Job ID Ran Files Coverage
1 23846773811.1 01 Apr 2026 11:46AM UTC 70
81.05
GitHub Action Run
Source Files on build 23846773811
  • Tree
  • List 70
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #23846773811
  • a95d1c01 on github
  • Prev Build on main (#23844088830)
  • Next Build on main (#23895094801)
  • 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