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

supabase / supabase-swift / 42802959846
96%

Build:
DEFAULT BRANCH: main
Ran 10 Nov 2026 11:02AM UTC
Jobs 1
Files 218
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

10 Nov 2026 10:53AM UTC coverage: 96.013% (+0.04%) from 95.978%
42802959846

push

github

web-flow
fix!: middleware is the one way to send an access token, with one failure shape (#1779)

* fix!: middleware is the one way to send an access token, with one failure shape

Remove `accessToken` from the PostgREST and Functions configurations. A
standalone client adds `AccessTokenMiddleware` to `http.middlewares`; the
facade keeps its Auth middleware. Both run inside the retry, so a retried
request gets a fresh token.

A provider failure is now `<Module>Error(kind: .accessToken,
underlyingError:)` in PostgREST, Storage, Functions, and Realtime
`httpSend`, standalone and through the facade. A static or per-call
`Authorization` header wins.

Realtime `httpSend` calls `Configuration.accessToken` on every request,
inside the request timeout. AuthClient, AuthAdminClient, and RealtimeClient
report an issue when their `http` holds an `AccessTokenMiddleware`.

BREAKING CHANGE: `PostgrestClient.Configuration.accessToken` and
`FunctionsClient.Configuration.accessToken` are removed. Use
`AccessTokenMiddleware` in `http.middlewares`. A provider error no longer
reaches the caller raw; read it from `underlyingError`.

Fixes SDK-2862

* docs(storage): an access token provider error is a StorageError with kind accessToken

91 of 91 new or added lines in 10 files covered. (100.0%)

4 existing lines in 1 file now uncovered.

15702 of 16354 relevant lines covered (96.01%)

697312.55 hits per line

Coverage Regressions

Lines Coverage ∆ File
4
90.51
-1.36% Sources/Realtime/Transport/URLSessionWebSocketTransport.swift
Jobs
ID Job ID Ran Files Coverage
1 42802959846.1 10 Nov 2026 11:02AM UTC 218
96.01
GitHub Action Run
Source Files on build 42802959846
  • Tree
  • List 218
  • Changed 20
  • Source Changed 18
  • Coverage Changed 20
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #42802959846
  • 5e11a3a9 on github
  • Prev Build on main (#42788534676)
  • Next Build on main (#42811619925)
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