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

supabase / auth / 30945096113
72%

Build:
DEFAULT BRANCH: master
Ran 04 Aug 2026 07:55PM UTC
Jobs 1
Files 199
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

04 Aug 2026 07:50PM UTC coverage: 72.232% (+0.02%) from 72.214%
30945096113

push

github

web-flow
chore: modernize HandleResponseError to support errors.As (#2646)

Replace the type switches in handleResponseError with errors.As checks
by dispatching to new functions for each error type:
* `HandleResponseError` creates log entry and apiVersion before calling
private func `handleResponseError` which accepts the log and apiVersion.
This keeps the recursion that happens in `handleResponseErrorCause`
cause case from executing twice which can log two errors if invalid.
* `handleResponseError` contains a single switch statement that
dispatches to one of the following funcs in the same sequence as
previously.
    * `handleResponseErrorWeakPassword`
	* `handleResponseErrorHTTP`
	* `handleResponseErrorOAuth`
	* `handleResponseErrorCause`
	* `handleResponseErrorDefault`
* Each private err handler contains the previous code block for the type
switch case and returns a bool to signal if the error was handled or
not.

Co-authored-by: Chris Stockton <chris.stockton@supabase.io>

93 of 118 new or added lines in 1 file covered. (78.81%)

9 existing lines in 2 files now uncovered.

18388 of 25457 relevant lines covered (72.23%)

685.54 hits per line

Uncovered Changes

Lines Coverage ∆ File
25
76.97
4.51% internal/api/errors.go

Coverage Regressions

Lines Coverage ∆ File
6
76.97
4.51% internal/api/errors.go
3
59.47
-0.62% internal/api/oauthserver/handlers.go
Jobs
ID Job ID Ran Files Coverage
1 30945096113.1 04 Aug 2026 07:55PM UTC 199
72.23
GitHub Action Run
Source Files on build 30945096113
  • Tree
  • List 199
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • ef6587a6 on github
  • Prev Build on master (#30933337581)
  • 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