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

supabase / auth / 19871602451
69%

Build:
DEFAULT BRANCH: master
Ran 02 Dec 2025 08:00PM UTC
Jobs 1
Files 170
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 Dec 2025 07:53PM UTC coverage: 68.435% (+0.2%) from 68.269%
19871602451

push

github

web-flow
feat(oauth): add support for X/Twitter v2 provider (#2275)

Adds support for X (formerly Twitter) v2 as an external OAuth provider.

- Introduces an `oauth_client_states` table to persist the `code_verifier`s as
X mandates the use of PKCE
- Uses SHA256 challenge for PKCE
- Updates the `GetOAuthToken` signature to accept a `code_verifier` as
the second parameter
- Uses the existing cleanup middleware to delete states
- Adds the provider as `x` rather than `x_v2` as `twitter` is already
used in old OAuth 1.0a provider to better align with the rebrand
- The state is a UUIDv4

NOTE: today the `flow_states` table is overloaded, containing states,
auth codes, provider tokens...the goal is to decouple that table
eventually and the `oauth_states` table is the first step towards that.

254 of 317 new or added lines in 31 files covered. (80.13%)

4 existing lines in 4 files now uncovered.

14641 of 21394 relevant lines covered (68.44%)

77.84 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
34.74
2.13% internal/api/provider/twitter.go
3
44.78
2.59% internal/api/provider/slack_oidc.go
4
80.95
internal/models/oauth_client_state.go
5
28.97
1.79% internal/api/provider/apple.go
5
0.0
0.0% internal/api/provider/slack.go
5
0.0
0.0% internal/api/provider/spotify.go
5
42.86
-2.98% internal/models/errors.go
6
76.42
0.12% internal/api/external.go
6
93.02
internal/api/provider/x.go
7
0.0
0.0% internal/api/provider/linkedin_oidc.go
7
0.0
0.0% internal/api/provider/vercel_marketplace.go
9
49.24
3.45% internal/api/external_oauth.go

Uncovered Existing Lines

Lines Coverage ∆ File
1
0.0
0.0% internal/api/provider/linkedin_oidc.go
1
0.0
0.0% internal/api/provider/slack.go
1
0.0
0.0% internal/api/provider/spotify.go
1
0.0
0.0% internal/api/provider/vercel_marketplace.go
Jobs
ID Job ID Ran Files Coverage
1 19871602451.1 02 Dec 2025 08:00PM UTC 170
68.44
GitHub Action Run
Source Files on build 19871602451
  • Tree
  • List 170
  • Changed 31
  • Source Changed 0
  • Coverage Changed 31
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 7f36eb05 on github
  • Prev Build on master (#19864408688)
  • Next Build on master (#20026208381)
  • 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

© 2025 Coveralls, Inc