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

supabase / auth / 23904279141
69%

Build:
DEFAULT BRANCH: master
Ran 02 Apr 2026 02:06PM UTC
Jobs 1
Files 186
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

02 Apr 2026 02:01PM UTC coverage: 69.154% (+0.006%) from 69.148%
23904279141

push

github

web-flow
fix: return JSON response for unmatched routes instead of plain text (#2457)

## What kind of change does this PR introduce?

Fix

## Summary

Routes behind feature flags (e.g. OAuthServer, CustomOAuth) return chi's
default plain text "404 page not found" when disabled. Register custom
NotFound and MethodNotAllowed handlers on the router so all unmatched
routes return structured JSON errors consistent with the rest of the
API.

Fixes inconsistent `content-type: text/plain` responses when
feature-gated routes (OAuthServer, CustomOAuth) are disabled

## Test plan
- [x] Hit a disabled route (e.g. `/oauth/clients/register` with
`OAuthServer.Enabled=false`) and verify JSON 404 response with
`error_code: "route_not_found"`

58 of 59 new or added lines in 2 files covered. (98.31%)

16469 of 23815 relevant lines covered (69.15%)

81.7 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
78.47
0.45% internal/api/middleware.go
Jobs
ID Job ID Ran Files Coverage
1 23904279141.1 02 Apr 2026 02:06PM UTC 186
69.15
GitHub Action Run
Source Files on build 23904279141
  • Tree
  • List 186
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 7337e21c on github
  • Prev Build on master (#23904213312)
  • 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