diff --git a/go.mod b/go.mod index 9c36e310..245df5e5 100644 --- a/go.mod +++ b/go.mod @@ -20,7 +20,6 @@ require ( github.com/dchest/captcha v1.0.0 github.com/docker/docker v25.0.6+incompatible github.com/docker/go-connections v0.5.0 - github.com/golang-jwt/jwt/v4 v4.4.2 github.com/golang-jwt/jwt/v5 v5.2.1 github.com/mattn/go-sqlite3 v1.14.24 github.com/minetest-go/areasparser v1.0.5 diff --git a/go.sum b/go.sum index f98e14cc..6d62e0ac 100644 --- a/go.sum +++ b/go.sum @@ -68,10 +68,7 @@ github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= -github.com/golang-jwt/jwt/v4 v4.4.2 h1:rcc4lwaZgFMCZ5jxF9ABolDcIHdBytAFgqFPbSJQAYs= -github.com/golang-jwt/jwt/v4 v4.4.2/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= -github.com/golang-jwt/jwt/v4 v4.5.1 h1:JdqV9zKUdtaa9gdPlywC3aeoEsR681PlKC+4F5gQgeo= -github.com/golang-jwt/jwt/v4 v4.5.1/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= +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-migrate/migrate/v4 v4.17.1 h1:4zQ6iqL6t6AiItphxJctQb3cFqWiSpMnX7wLTPnnYO4= github.com/golang-migrate/migrate/v4 v4.17.1/go.mod h1:m8hinFyWBn0SA4QKHuKh175Pm9wjmxj3S2Mia7dbXzM= diff --git a/types/claims.go b/types/claims.go index 59695165..89152920 100644 --- a/types/claims.go +++ b/types/claims.go @@ -1,6 +1,6 @@ package types -import "github.com/golang-jwt/jwt/v4" +import "github.com/golang-jwt/jwt/v5" type Claims struct { *jwt.RegisteredClaims diff --git a/web/login.go b/web/login.go index 5f7328b6..0f264337 100644 --- a/web/login.go +++ b/web/login.go @@ -10,7 +10,7 @@ import ( "net/http" "time" - "github.com/golang-jwt/jwt/v4" + "github.com/golang-jwt/jwt/v5" "github.com/pquerna/otp" "github.com/pquerna/otp/totp" "github.com/sirupsen/logrus" diff --git a/web/token.go b/web/token.go index a35c0210..47ac1f00 100644 --- a/web/token.go +++ b/web/token.go @@ -9,7 +9,7 @@ import ( "strings" "time" - "github.com/golang-jwt/jwt/v4" + "github.com/golang-jwt/jwt/v5" ) const TOKEN_COOKIE_NAME = "mtui"