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

alexferl / zerohttp / 22813250023
94%

Build:
DEFAULT BRANCH: master
Ran 08 Mar 2026 03:46AM UTC
Jobs 1
Files 52
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

08 Mar 2026 03:45AM UTC coverage: 93.182% (+0.07%) from 93.113%
22813250023

push

github

web-flow
feat: add JWT authentication middleware (#39)

* feat: add JWT authentication middleware

Add pluggable JWT authentication with TokenStore interface, allowing users
to bring their own JWT library (golang-jwt/jwt, lestrrat-go/jwx) or use
the built-in zero-dependency HS256 implementation.

Features:
  - TokenStore interface for custom JWT implementations
  - Built-in HS256 TokenStore (standard library only)
  - Access token and refresh token generation
  - Token revocation support with IsRevoked() checking
  - Refresh token rotation (new refresh token on each refresh)
  - Built-in refresh and logout handlers
  - Customizable token extraction (header, cookie, etc.)
  - RFC 9457 Problem Details error responses

Signed-off-by: alexferl <me@alexferl.com>

* convert aud to slice

Signed-off-by: alexferl <me@alexferl.com>

---------

Signed-off-by: alexferl <me@alexferl.com>

615 of 655 new or added lines in 4 files covered. (93.89%)

6738 of 7231 relevant lines covered (93.18%)

28.43 hits per line

Uncovered Changes

Lines Coverage ∆ File
34
92.98
middleware/jwt_auth.go
6
96.15
middleware/jwt_hs256.go
Jobs
ID Job ID Ran Files Coverage
1 22813250023.1 08 Mar 2026 03:46AM UTC 52
93.18
GitHub Action Run
Source Files on build 22813250023
  • Tree
  • List 52
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #22813250023
  • bfa955d9 on github
  • Prev Build on master (#22806424706)
  • Next Build on master (#22814564272)
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