diff --git a/go.mod b/go.mod index 3e313d7..f75b93f 100644 --- a/go.mod +++ b/go.mod @@ -5,14 +5,14 @@ go 1.15 require ( github.com/HdrHistogram/hdrhistogram-go v1.1.0 // indirect github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751 - github.com/dgrijalva/jwt-go v3.2.0+incompatible github.com/eddycjy/opentracing-gorm v0.0.0-20200209122056-516a807d2182 github.com/fsnotify/fsnotify v1.4.9 - github.com/gin-gonic/gin v1.7.2 + github.com/gin-gonic/gin v1.7.7 github.com/go-playground/locales v0.13.0 github.com/go-playground/universal-translator v0.17.0 github.com/go-playground/validator/v10 v10.6.1 github.com/go-redis/redis v6.15.9+incompatible + github.com/golang-jwt/jwt v3.2.2+incompatible github.com/jinzhu/gorm v1.9.16 github.com/juju/ratelimit v1.0.1 github.com/lestrrat-go/file-rotatelogs v2.4.0+incompatible diff --git a/internal/middleware/jwt.go b/internal/middleware/jwt.go index 406a93f..c4b7ec9 100644 --- a/internal/middleware/jwt.go +++ b/internal/middleware/jwt.go @@ -7,8 +7,8 @@ package middleware import ( - "github.com/dgrijalva/jwt-go" "github.com/gin-gonic/gin" + "github.com/golang-jwt/jwt" "github.com/viletyy/potato/pkg/app" "github.com/viletyy/potato/pkg/errcode" ) diff --git a/pkg/app/jwt.go b/pkg/app/jwt.go index 2031b5a..ddd341c 100644 --- a/pkg/app/jwt.go +++ b/pkg/app/jwt.go @@ -9,7 +9,7 @@ package app import ( "time" - "github.com/dgrijalva/jwt-go" + "github.com/golang-jwt/jwt" "github.com/viletyy/potato/global" "github.com/viletyy/yolk/crypt" )