github.com/dgrijalva/jwt-go/v4

v4

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

71

Decision Signals

Health score 71/100, confidence 95/100.

Review
Maintenance 12
Adoption 100
Security 92
Maturity 100
Developer DX 89
Confidence 95

Install

go get github.com/dgrijalva/jwt-go/v4

Package Data

updated May 29, 2026
Latest versionv4.0.0-preview1
Imported by427 packages
Stars10.8K
Forks977
Last activity4 years ago
Latest releaseUnknown
LicenseMIT
Known vuln records0

API Surface

180 symbols
SymbolKindSynopsis
ClaimStrings Type type ClaimStrings []string
ClaimStrings.UnmarshalJSON Method func (c *ClaimStrings) UnmarshalJSON(data []byte) error
ParseClaimStrings Function func ParseClaimStrings(value interface{}) (ClaimStrings, error)
Claims Type type Claims interface{ ... }
Claims.Valid Method Valid func(*ValidationHelper) error
CodingContext Type type CodingContext struct{ ... }
CodingContext.Header Field Header map[string]interface{}
ErrorWrapper Type type ErrorWrapper struct{}
ErrorWrapper.Unwrap Method func (w ErrorWrapper) Unwrap() error
ErrorWrapper.Wrap Method func (w ErrorWrapper) Wrap(err error)
FieldDescriptor Type type FieldDescriptor uint8
ClaimsFieldDescriptor Constant const ClaimsFieldDescriptor

Maintained Alternatives

archived repository

#1 golang-jwt

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

Go JWT Libraries 9.1K stars 15.1K imported-by 100% confidence
96

#2 jwtauth

JWT authentication middleware for Go HTTP services

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

#3 pocketbase

Open Source realtime backend in 1 file

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

#4 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

#5 jwt

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

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

#6 jeff

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

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

Similar Packages

Go JWT Libraries

#1 golang-jwt

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

Go JWT Libraries 9.1K stars 15.1K imported-by 100% confidence
96

#2 jwtauth

JWT authentication middleware for Go HTTP services

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

#3 pocketbase

Open Source realtime backend in 1 file

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

#4 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

#5 jwt

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

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