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

go-pkgz / auth / 46081838067
89%

Build:
DEFAULT BRANCH: master
Ran 27 Nov 2026 11:21PM UTC
Jobs 1
Files 25
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 Nov 2026 11:19PM UTC coverage: 88.707% (+0.4%) from 88.332%
46081838067

push

github

web-flow
Copy refreshed claims per request and refresh expired cache entries (#348)

* Copy refreshed claims per request and refresh expired cache entries

With RefreshCache set, every request served from one cache entry shared the
same User.Attributes map, so an UpdateUser or handler changing attributes
raced with other requests reading them, and the process could die with a
concurrent map write. The cache now keeps its own copy of the refreshed
claims and each hit gets a fresh one. A cache entry whose claims have
expired is refreshed again, so a block that ClaimsUpd adds applies within
one token lifetime with the cache as well. Same in v2.

* Test a refresh cache entry that can't be copied

A request that hits cached claims that can't be marshaled gets a 401 and has
both the JWT and XSRF-TOKEN cookies reset. The expired-entry test now requires
both reset cookies too. Same in v2.

14 of 16 new or added lines in 1 file covered. (87.5%)

3731 of 4206 relevant lines covered (88.71%)

17.29 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
93.36
v2/middleware/auth.go
Jobs
ID Job ID Ran Files Coverage
1 46081838067.1 27 Nov 2026 11:21PM UTC 25
88.71
GitHub Action Run
Source Files on build 46081838067
  • Tree
  • List 25
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 5f5166c0 on github
  • Prev Build on master (#46080858063)
  • Next Build on master (#46081838007)
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