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

supabase / auth / 33076969398
71%

Build:
DEFAULT BRANCH: master
Ran 27 Aug 2026 01:32PM UTC
Jobs 1
Files 203
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

27 Aug 2026 01:28PM UTC coverage: 71.005% (+0.04%) from 70.963%
33076969398

push

github

web-flow
feat(oauth): emit login metering events for OAuth server token exchanges (#2749)

## What kind of change does this PR introduce?

Feature (analytics/observability only, no behavior change)

## What is the current behavior?

OAuth 2.1 authorization server logins aren't represented in standard
`Login` metering events:
- The initial authorization_code → token exchange emits no login event.
- Refreshes of OAuth server tokens only emit the generic `login_method:
token` event, with no attribution to the OAuth server or client.

This makes it impossible to answer "what share of logins flow through
the OAuth server?"

## What is the new behavior?

- `handleAuthorizationCodeGrant` now records a
`oauth_server_authorization_code` login event (with `client_id`) once
the exchange has fully succeeded.
- `RefreshTokenGrant` now additionally records an
`oauth_server_token_refresh` login event (with `client_id`) for OAuth
server sessions, alongside the existing (unchanged) generic `token`
event.
- `metering.LoginData` gained a `ClientID` field, surfaced as
`client_id` in the emitted log fields.

 

 Resolves AUTH-1539

---------

Co-authored-by: fadymak <dev@fadymak.com>

22 of 22 new or added lines in 3 files covered. (100.0%)

15974 of 22497 relevant lines covered (71.01%)

485.06 hits per line

Jobs
ID Job ID Ran Files Coverage
1 33076969398.1 27 Aug 2026 01:32PM UTC 203
71.01
GitHub Action Run
Source Files on build 33076969398
  • Tree
  • List 203
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 719db0b7 on github
  • Prev Build on master (#33023482360)
  • Next Build on master (#33097125703)
  • 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