github.com/golang-jwt/jwt/v5

golang-jwt

Package jwt is a Go implementation of JSON Web Tokens: http://self-issued.info/docs/draft-jones-json-web-token.html

96

Decision Signals

Health score 96/100, confidence 100/100.

Excellent
Maintenance 95
Adoption 100
Security 92
Maturity 94
Developer DX 97
Confidence 100

Install

go get github.com/golang-jwt/jwt/v5

Package Data

updated May 29, 2026
Latest versionv5.3.1
Imported by15.1K packages
Stars9.1K
Forks433
Last activity2 days ago
Latest releasev5.3.1 (4 months ago)
LicenseMIT
Known vuln records0

API Surface

167 symbols
SymbolKindSynopsis
ClaimStrings Type type ClaimStrings []string
ClaimStrings.MarshalJSON Method func (s ClaimStrings) MarshalJSON() (b []byte, err error)
ClaimStrings.UnmarshalJSON Method func (s *ClaimStrings) UnmarshalJSON(data []byte) (err error)
Claims Type type Claims interface{ ... }
Claims.GetAudience Method GetAudience func() (ClaimStrings, error)
Claims.GetExpirationTime Method GetExpirationTime func() (*NumericDate, error)
Claims.GetIssuedAt Method GetIssuedAt func() (*NumericDate, error)
Claims.GetIssuer Method GetIssuer func() (string, error)
Claims.GetNotBefore Method GetNotBefore func() (*NumericDate, error)
Claims.GetSubject Method GetSubject func() (string, error)
ClaimsValidator Type type ClaimsValidator interface{ ... }
ClaimsValidator.Validate Method Validate func() error

Similar Packages

Go JWT Libraries

#1 jwtauth

JWT authentication middleware for Go HTTP services

Go JWT Libraries 640 stars 697 imported-by 95% confidence
95

#2 pocketbase

Open Source realtime backend in 1 file

Go JWT Libraries 58.7K stars 544 imported-by 100% confidence
94

#3 hanko

Modern authentication, on your terms. Open source alternative to Auth0, Clerk, WorkOS, Stytch.

Go JWT Libraries 8.9K stars 0 imported-by 95% confidence
90

#4 jwt

Package jwt implements JSON Web Tokens as described in RFC 7519.

Go JWT Libraries 2.4K stars 0 imported-by 75% confidence
84

#5 jeff

Simple, flexible, secure, and idiomatic web session management with pluggable backends.

Go JWT Libraries 272 stars 2 imported-by 100% confidence
71