From 97330f472a500fc69cbfa52e18c7c45151259b3d Mon Sep 17 00:00:00 2001 From: Matthew Leach Date: Mon, 3 Feb 2025 07:54:19 -0600 Subject: [PATCH] update dgrijalva/jwt-go to golang-jwt/jwt/v5 --- go.mod | 1 + go.sum | 2 ++ utils/jwt.go | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 00da183b0b..e551dcce1e 100644 --- a/go.mod +++ b/go.mod @@ -27,6 +27,7 @@ require ( github.com/go-openapi/swag v0.19.9 // indirect github.com/go-playground/locales v0.12.1 // indirect github.com/go-playground/universal-translator v0.16.0 // indirect + github.com/golang-jwt/jwt/v5 v5.2.1 github.com/jinzhu/inflection v0.0.0-20180308033659-04140366298a // indirect github.com/leodido/go-urn v1.1.0 // indirect github.com/mailru/easyjson v0.7.1 // indirect diff --git a/go.sum b/go.sum index c8ed1c1d95..f6c235010a 100644 --- a/go.sum +++ b/go.sum @@ -69,6 +69,8 @@ github.com/go-sql-driver/mysql v1.4.1/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= github.com/gogo/protobuf v1.2.0/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= +github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= +github.com/golang-jwt/jwt/v5 v5.2.1/go.mod h1:pqrtFR0X4osieyHYxtmOUWsAWrfe1Q5UVIyoH402zdk= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= diff --git a/utils/jwt.go b/utils/jwt.go index 3d0ada2ca4..9156e565d5 100644 --- a/utils/jwt.go +++ b/utils/jwt.go @@ -3,7 +3,7 @@ package utils import ( "time" - "github.com/dgrijalva/jwt-go" + "github.com/golang-jwt/jwt/v5" ) var JWTSecret = []byte("!!SECRET!!")