Echo v4.5.0 Release Notes
Release Date: 2021-08-01 // over 2 years ago-
Important notes
๐ฅ A BREAKING CHANGE is introduced for JWT middleware users. The JWT library used for the JWT middleware had to be changed from github.com/dgrijalva/jwt-go to ๐ github.com/golang-jwt/jwt due former library being unmaintained and affected by security issues. โ The github.com/golang-jwt/jwt project is a drop-in replacement, but supports only the latest 2 Go versions. So for JWT middleware users Go 1.15+ is required. For detailed information please read #1940
To change the library imports in all .go files in your project replace all occurrences of
dgrijalva/jwt-go
withgolang-jwt/jwt
.๐ง For Linux CLI you can use:
find -type f -name "*.go" -exec sed -i "s/dgrijalva\/jwt-go/golang-jwt\/jwt/g" {} \; go mod tidy
๐ Fixes
- ๐ Change JWT library to
github.com/golang-jwt/jwt
#1946
- ๐ Change JWT library to