github.com/auth0/go-jwt-middleware

go-jwt-middleware

A Middleware for Go Programming Language to check for JWTs on HTTP requests

91

Decision Signals

Health score 91/100, confidence 60/100.

Excellent
Maintenance 95
Adoption 100
Security 92
Maturity 83
Developer DX 69
Confidence 60

Install

go get github.com/auth0/go-jwt-middleware

Package Data

updated Jun 11, 2026
Latest versionUnknown
Imported by874 packages
Stars1.2K
Forks210
Last activity2 days ago
Latest releasev3.2.0 (26 days ago)
LicenseMIT
Known vuln records0

API Surface

20 symbols
SymbolKindSynopsis
JWTMiddleware Type type JWTMiddleware struct{ ... }
JWTMiddleware.CheckJWT Method func (m *JWTMiddleware) CheckJWT(w http.ResponseWriter, r *http.Request) error
JWTMiddleware.Handler Method func (m *JWTMiddleware) Handler(h http.Handler) http.Handler
JWTMiddleware.HandlerWithNext Method func (m *JWTMiddleware) HandlerWithNext(w http.ResponseWriter, r *http.Request, next http.HandlerFunc)
JWTMiddleware.Options Field Options Options
New Function func New(options ...Options) *JWTMiddleware
Options Type type Options struct{ ... }
Options.CredentialsOptional Field CredentialsOptional bool
Options.Debug Field Debug bool
Options.EnableAuthOnOptions Field EnableAuthOnOptions bool
Options.ErrorHandler Field ErrorHandler errorHandler
Options.Extractor Field Extractor TokenExtractor

Similar Packages

Go Security Middleware

#1 Caddy

Package caddy implements the Caddy server manager.

Go Security Middleware 73.3K stars 0 imported-by 80% confidence
91

#2 nosurf

Package nosurf implements an HTTP handler that mitigates Cross-Site Request Forgery Attacks.

Go Security Middleware 1.7K stars 2.5K imported-by 100% confidence
81

#3 authelia

The Single Sign-On Multi-Factor portal for web apps, now OpenID Certified™

Go Security Middleware 28.0K stars 0 imported-by 95% confidence
81

#4 gorilla/csrf

Package gorilla/csrf provides Cross Site Request Forgery (CSRF) prevention middleware for Go web applications & services đź”’

Go Security Middleware 1.2K stars 1.1K imported-by 65% confidence
67

#5 secure

Package secure is an HTTP middleware for Go that facilitates some quick security wins.

Go Security Middleware 0 stars 921 imported-by 80% confidence
64