github.com/golang-jwt/jwt/v5 breaking changes
github.com/golang-jwt/jwt/v5 v5.0.0 (April 17, 2023) is its newest release with breaking changes, 57 of them. The first: Removed github.com/golang-jwt/jwt/v5.Claims.Valid. Every breaking API change we have recorded in github.com/golang-jwt/jwt/v5 on Go modules: 60 breaking changes in 2 versions. Below, its 2 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version v5.4.0, released November 30, 2026.
Packages on Go modules run on Go. Go end of life dates.
- From v5.0.0-rc.1 to v5.0.0: 57 breaking changes in 1 version.
github.com/golang-jwt/jwt/v5 v5.0.0 breaking changes
- Removed
github.com/golang-jwt/jwt/v5.Claims.Valid
github.com/golang-jwt/jwt/v5.Claims.Valid was removed in github.com/golang-jwt/jwt/v5 v5.0.0 pkg.go.dev - Removed
github.com/golang-jwt/jwt/v5.DecodePaddingAllowed
github.com/golang-jwt/jwt/v5.DecodePaddingAllowed was removed in github.com/golang-jwt/jwt/v5 v5.0.0 pkg.go.dev - Removed
github.com/golang-jwt/jwt/v5.DecodeSegment
DecodeSegment and EncodeSegment were moved from globals to the Parser and Token structs. pkg.go.dev - Removed
github.com/golang-jwt/jwt/v5.DecodeStrict
github.com/golang-jwt/jwt/v5.DecodeStrict was removed in github.com/golang-jwt/jwt/v5 v5.0.0 pkg.go.dev - Removed
github.com/golang-jwt/jwt/v5.EncodeSegment
EncodeSegment was moved from a global function to the Token struct. pkg.go.dev - Removed
github.com/golang-jwt/jwt/v5.MapClaims.Valid
github.com/golang-jwt/jwt/v5.MapClaims.Valid was removed in github.com/golang-jwt/jwt/v5 v5.0.0 pkg.go.dev - Removed
github.com/golang-jwt/jwt/v5.MapClaims.VerifyAudience
github.com/golang-jwt/jwt/v5.MapClaims.VerifyAudience was removed in github.com/golang-jwt/jwt/v5 v5.0.0 pkg.go.dev - Removed
github.com/golang-jwt/jwt/v5.MapClaims.VerifyExpiresAt
github.com/golang-jwt/jwt/v5.MapClaims.VerifyExpiresAt was removed in github.com/golang-jwt/jwt/v5 v5.0.0 pkg.go.dev - Removed
github.com/golang-jwt/jwt/v5.MapClaims.VerifyIssuedAt
github.com/golang-jwt/jwt/v5.MapClaims.VerifyIssuedAt was removed in github.com/golang-jwt/jwt/v5 v5.0.0 pkg.go.dev - Removed
github.com/golang-jwt/jwt/v5.MapClaims.VerifyIssuer
github.com/golang-jwt/jwt/v5.MapClaims.VerifyIssuer was removed in github.com/golang-jwt/jwt/v5 v5.0.0 pkg.go.dev - Removed
github.com/golang-jwt/jwt/v5.MapClaims.VerifyNotBefore
github.com/golang-jwt/jwt/v5.MapClaims.VerifyNotBefore was removed in github.com/golang-jwt/jwt/v5 v5.0.0 pkg.go.dev - Removed
github.com/golang-jwt/jwt/v5.NewValidationError
github.com/golang-jwt/jwt/v5.NewValidationError was removed in github.com/golang-jwt/jwt/v5 v5.0.0 pkg.go.dev - Removed
github.com/golang-jwt/jwt/v5.Parser.SkipClaimsValidation
github.com/golang-jwt/jwt/v5.Parser.SkipClaimsValidation was removed in github.com/golang-jwt/jwt/v5 v5.0.0 pkg.go.dev - Removed
github.com/golang-jwt/jwt/v5.Parser.UseJSONNumber
github.com/golang-jwt/jwt/v5.Parser.UseJSONNumber was removed in github.com/golang-jwt/jwt/v5 v5.0.0 pkg.go.dev - Removed
github.com/golang-jwt/jwt/v5.Parser.ValidMethods
github.com/golang-jwt/jwt/v5.Parser.ValidMethods was removed in github.com/golang-jwt/jwt/v5 v5.0.0 pkg.go.dev - Removed
github.com/golang-jwt/jwt/v5.RegisteredClaims.Valid
github.com/golang-jwt/jwt/v5.RegisteredClaims.Valid was removed in github.com/golang-jwt/jwt/v5 v5.0.0 pkg.go.dev - Removed
github.com/golang-jwt/jwt/v5.RegisteredClaims.VerifyAudience
github.com/golang-jwt/jwt/v5.RegisteredClaims.VerifyAudience was removed in github.com/golang-jwt/jwt/v5 v5.0.0 pkg.go.dev - Removed
github.com/golang-jwt/jwt/v5.RegisteredClaims.VerifyExpiresAt
github.com/golang-jwt/jwt/v5.RegisteredClaims.VerifyExpiresAt was removed in github.com/golang-jwt/jwt/v5 v5.0.0 pkg.go.dev - Removed
github.com/golang-jwt/jwt/v5.RegisteredClaims.VerifyIssuedAt
github.com/golang-jwt/jwt/v5.RegisteredClaims.VerifyIssuedAt was removed in github.com/golang-jwt/jwt/v5 v5.0.0 pkg.go.dev - Removed
github.com/golang-jwt/jwt/v5.RegisteredClaims.VerifyIssuer
github.com/golang-jwt/jwt/v5.RegisteredClaims.VerifyIssuer was removed in github.com/golang-jwt/jwt/v5 v5.0.0 pkg.go.dev - Removed
github.com/golang-jwt/jwt/v5.RegisteredClaims.VerifyNotBefore
github.com/golang-jwt/jwt/v5.RegisteredClaims.VerifyNotBefore was removed in github.com/golang-jwt/jwt/v5 v5.0.0 pkg.go.dev - Removed
github.com/golang-jwt/jwt/v5.StandardClaims
StandardClaims was already deprecated in v4 and is now removed. Use RegisteredClaims instead. pkg.go.dev - Removed
github.com/golang-jwt/jwt/v5.TimeFunc
github.com/golang-jwt/jwt/v5.TimeFunc was removed in github.com/golang-jwt/jwt/v5 v5.0.0 pkg.go.dev - Removed
github.com/golang-jwt/jwt/v5.ValidationError
github.com/golang-jwt/jwt/v5.ValidationError was removed in github.com/golang-jwt/jwt/v5 v5.0.0 pkg.go.dev - Removed
github.com/golang-jwt/jwt/v5.ValidationErrorAudience
github.com/golang-jwt/jwt/v5.ValidationErrorAudience was removed in github.com/golang-jwt/jwt/v5 v5.0.0 pkg.go.dev - Removed
github.com/golang-jwt/jwt/v5.ValidationErrorClaimsInvalid
github.com/golang-jwt/jwt/v5.ValidationErrorClaimsInvalid was removed in github.com/golang-jwt/jwt/v5 v5.0.0 pkg.go.dev - Removed
github.com/golang-jwt/jwt/v5.ValidationErrorExpired
github.com/golang-jwt/jwt/v5.ValidationErrorExpired was removed in github.com/golang-jwt/jwt/v5 v5.0.0 pkg.go.dev - Removed
github.com/golang-jwt/jwt/v5.ValidationErrorId
github.com/golang-jwt/jwt/v5.ValidationErrorId was removed in github.com/golang-jwt/jwt/v5 v5.0.0 pkg.go.dev - Removed
github.com/golang-jwt/jwt/v5.ValidationErrorIssuedAt
github.com/golang-jwt/jwt/v5.ValidationErrorIssuedAt was removed in github.com/golang-jwt/jwt/v5 v5.0.0 pkg.go.dev - Removed
github.com/golang-jwt/jwt/v5.ValidationErrorIssuer
github.com/golang-jwt/jwt/v5.ValidationErrorIssuer was removed in github.com/golang-jwt/jwt/v5 v5.0.0 pkg.go.dev - Removed
github.com/golang-jwt/jwt/v5.ValidationErrorMalformed
github.com/golang-jwt/jwt/v5.ValidationErrorMalformed was removed in github.com/golang-jwt/jwt/v5 v5.0.0 pkg.go.dev - Removed
github.com/golang-jwt/jwt/v5.ValidationErrorNotValidYet
github.com/golang-jwt/jwt/v5.ValidationErrorNotValidYet was removed in github.com/golang-jwt/jwt/v5 v5.0.0 pkg.go.dev - Removed
github.com/golang-jwt/jwt/v5.ValidationErrorSignatureInvalid
github.com/golang-jwt/jwt/v5.ValidationErrorSignatureInvalid was removed in github.com/golang-jwt/jwt/v5 v5.0.0 pkg.go.dev - Removed
github.com/golang-jwt/jwt/v5.ValidationErrorUnverifiable
github.com/golang-jwt/jwt/v5.ValidationErrorUnverifiable was removed in github.com/golang-jwt/jwt/v5 v5.0.0 pkg.go.dev - Behavior changed
jwt.ClaimsValidator
Custom claims that overrode Valid must implement Validate; its errors are appended to standard validation, which can no longer be disabled. github.com - Default changed
jwt.Parser.iat
The iat claim is no longer checked by default. Use the WithIssuedAt parser option to keep checking it. github.com - Signature changed
github.com/golang-jwt/jwt/v5.New
Was func New(SigningMethod) *Token; now func New(SigningMethod, ...TokenOption) *Token. pkg.go.dev - Signature changed
github.com/golang-jwt/jwt/v5.NewWithClaims
Was func NewWithClaims(SigningMethod, Claims) *Token; now func NewWithClaims(SigningMethod, Claims, ...TokenOption) *Token. pkg.go.dev - Signature changed
github.com/golang-jwt/jwt/v5.SigningMethod.Sign
Sign and Verify on signing methods now operate on []byte rather than base64 strings. Custom signing methods must be updated. pkg.go.dev - Signature changed
github.com/golang-jwt/jwt/v5.SigningMethod.Verify
Was func Verify(string, string, interface{}) error; now func Verify(string, []byte, interface{}) error. pkg.go.dev - Signature changed
github.com/golang-jwt/jwt/v5.SigningMethodECDSA.Sign
Was func Sign(string, interface{}) (string, error); now func Sign(string, interface{}) ([]byte, error). pkg.go.dev - Signature changed
github.com/golang-jwt/jwt/v5.SigningMethodECDSA.Verify
Was func Verify(string, string, interface{}) error; now func Verify(string, []byte, interface{}) error. pkg.go.dev - Signature changed
github.com/golang-jwt/jwt/v5.SigningMethodEd25519.Sign
Was func Sign(string, interface{}) (string, error); now func Sign(string, interface{}) ([]byte, error). pkg.go.dev - Signature changed
github.com/golang-jwt/jwt/v5.SigningMethodEd25519.Verify
Was func Verify(string, string, interface{}) error; now func Verify(string, []byte, interface{}) error. pkg.go.dev - Signature changed
github.com/golang-jwt/jwt/v5.SigningMethodHMAC.Sign
Was func Sign(string, interface{}) (string, error); now func Sign(string, interface{}) ([]byte, error). pkg.go.dev - Signature changed
github.com/golang-jwt/jwt/v5.SigningMethodHMAC.Verify
Was func Verify(string, string, interface{}) error; now func Verify(string, []byte, interface{}) error. pkg.go.dev - Signature changed
github.com/golang-jwt/jwt/v5.SigningMethodRSA.Sign
Was func Sign(string, interface{}) (string, error); now func Sign(string, interface{}) ([]byte, error). pkg.go.dev - Signature changed
github.com/golang-jwt/jwt/v5.SigningMethodRSA.Verify
Was func Verify(string, string, interface{}) error; now func Verify(string, []byte, interface{}) error. pkg.go.dev - Signature changed
github.com/golang-jwt/jwt/v5.SigningMethodRSAPSS.Sign
Was func Sign(string, interface{}) (string, error); now func Sign(string, interface{}) ([]byte, error). pkg.go.dev - Signature changed
github.com/golang-jwt/jwt/v5.SigningMethodRSAPSS.Verify
Was func Verify(string, string, interface{}) error; now func Verify(string, []byte, interface{}) error. pkg.go.dev
And 7 more in this version. Sign up to see every change
github.com/golang-jwt/jwt/v5 v5.0.0-rc.1 breaking changes
- Behavior changed
jwt.ClaimsValidator
Custom claims that overrode Valid must now implement Validate; its errors are appended to standard validation, which can no longer be disabled. github.com - Default changed
jwt.Parser.iat
The iat claim is no longer validated by default. To keep checking it, use the WithIssuedAt parser option. github.com - Signature changed
jwt.Claims
The Claims interface no longer has Valid or VerifyXXX methods; it now has getter methods. Custom claim types must implement the getters. github.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.