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 Jun 11, 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 0 imported-by 45% confidence
84

#2 pocketbase

Open Source realtime backend in 1 file

Go JWT Libraries 0 stars 544 imported-by 80% confidence
75

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 0 imported-by 45% confidence
84

#2 pocketbase

Open Source realtime backend in 1 file

Go JWT Libraries 0 stars 544 imported-by 80% confidence
75

#3 jwt

Package jwt implements JSON Web Tokens as described in https://tools.ietf.org/html/rfc7519

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

#4 scs

Session Manager for HTTP servers.

Go JWT Libraries 0 stars 0 imported-by 25% confidence
44

#5 jeff

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

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