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.

52

Decision Signals

Health score 52/100, confidence 75/100.

Caution
Maintenance 15
Adoption 45
Security 92
Maturity 62
Developer DX 83
Confidence 75

Install

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

Package Data

updated May 28, 2026
Latest versionv4.0.0-preview1
Imported by427 packages
Stars0
Forks0
Last activity6 years ago
Latest releaseUnknown
LicenseUnknown
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

limited recent repository activity

#1 pocketbase

Open Source realtime backend in 1 file

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

#2 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 0 imported-by 80% confidence
87

Similar Packages

Go JWT Libraries

#1 pocketbase

Open Source realtime backend in 1 file

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

#2 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 0 imported-by 80% confidence
87

#3 jwtauth

Go JWT Libraries 0 stars 697 imported-by 75% confidence
50

#4 jwt-auth

JWT middleware for Golang http servers with many configuration options.

Go JWT Libraries 0 stars 0 imported-by 45% confidence
45

#5 jeff

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

Go JWT Libraries 0 stars 2 imported-by 80% confidence
43