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

supabase / auth / 17260451741
69%

Build:
DEFAULT BRANCH: master
Ran 27 Aug 2025 07:46AM UTC
Jobs 1
Files 153
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 2025 07:39AM UTC coverage: 70.815% (+0.01%) from 70.802%
17260451741

push

github

web-flow
chore: extract token generation logic to its own package (#2135)

## Summary

Extracted common token operations from the existing `/token` endpoint to
a new `internal/tokens` package to enable code reuse for the upcoming
`/oauth/token` endpoint implementation.

## Backward Compatibility
- Type aliases: AccessTokenClaims = tokens.AccessTokenClaims in
`internal/api/token.go` to keep the changes low
- Method preservation: All existing API methods work unchanged
- Feature parity: AsRedirectURL(), hooks, validation - everything
preserved

Note on request object dependency: The service requires the HTTP
`request` object for audit log entries (`models.NewAuditLogEntry`).
While ideally the service would extract only needed context, the current
audit logging implementation requires the full request object.

287 of 382 new or added lines in 6 files covered. (75.13%)

12297 of 17365 relevant lines covered (70.81%)

70.0 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
85.77
-0.06% internal/api/api.go
6
91.55
-8.45% internal/api/options.go
88
75.35
internal/tokens/service.go
Jobs
ID Job ID Ran Files Coverage
1 17260451741.1 27 Aug 2025 07:46AM UTC 153
70.81
GitHub Action Run
Source Files on build 17260451741
  • Tree
  • List 153
  • Changed 6
  • Source Changed 0
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • db3ce12e on github
  • Prev Build on master (#17191439812)
  • Next Build on master (#17264642356)
  • 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