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

supabase / supabase-swift / 45150164808
96%

Build:
DEFAULT BRANCH: main
Ran 23 Nov 2026 09:56AM UTC
Jobs 1
Files 224
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

23 Nov 2026 09:47AM UTC coverage: 96.216% (+0.01%) from 96.205%
45150164808

push

github

web-flow
fix(functions): send a third-party provider token as given (#1853)

* fix(functions): send a third-party provider token as given

Functions omits the API key from `Authorization` when there is no token
and the key is new-format (`sb_publishable_…` / `sb_secret_…`). The old
check compared the outgoing token with the key, so it also dropped a
third-party provider token that equals the key. supabase-js sends a
provider token as given; this change does the same.

`bearerMiddleware` now takes a `keyAsBearer` flag that only controls the
key fallback, and the unused `APIKeyFormat.functionsBearerToken` helper
is removed.

Tests pin the header for each case: session with a new-format or legacy
key, no session, a provider that returns no token, and a per-call
override. Integration tests cover a signed-in client with a new-format
key and a legacy key with no session.

* test(functions): cover sb_secret_ keys on the session fallback path

Reuse makeClient in the session test and correct the bearerMiddleware summary.

* docs(functions): note that a third-party token equal to a new-format key is sent

* revert(functions): keep dropping a provider token equal to a new-format key

The rule that keeps a new-format key out of the Functions Authorization
header is deliberate, including when a third-party provider returns the
key. Restore APIKeyFormat.functionsBearerToken and its tests, and drop
the migration note. The new tests that pin the header for each case stay.

* fix(functions): match supabase-js and send a provider token as given

Restore the supabase-js behavior: Functions leaves a new-format key out
of Authorization only on the key fallback, and sends a third-party
provider token as given. This reverts eced4d2b; the migration note is
back.

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

2 existing lines in 1 file now uncovered.

16503 of 17152 relevant lines covered (96.22%)

533324.06 hits per line

Coverage Regressions

Lines Coverage ∆ File
2
71.43
-28.57% Sources/Helpers/Task+Named.swift
Jobs
ID Job ID Ran Files Coverage
1 45150164808.1 23 Nov 2026 09:56AM UTC 224
96.22
GitHub Action Run
Source Files on build 45150164808
  • Tree
  • List 224
  • Changed 4
  • Source Changed 2
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #45150164808
  • 254d98dc on github
  • Prev Build on main (#45147091016)
  • Next Build on main (#45152434544)
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