Skip to content

Commit

Permalink
Switch golang-jwt/jwt to v4
Browse files Browse the repository at this point in the history
  • Loading branch information
koddr committed Aug 4, 2021
1 parent fe502b8 commit 9dfb372
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ make docker.run
| [gofiber/jwt](https://github.com/gofiber/jwt) | `v2.2.5` | middleware |
| [arsmn/fiber-swagger](https://github.com/arsmn/fiber-swagger) | `v2.15.0` | middleware |
| [stretchr/testify](https://github.com/stretchr/testify) | `v1.7.0` | tests |
| [golang-jwt/jwt](https://github.com/golang-jwt/jwt) | `v3.2.2` | auth |
| [golang-jwt/jwt](https://github.com/golang-jwt/jwt) | `v4.0.0` | auth |
| [joho/godotenv](https://github.com/joho/godotenv) | `v1.3.0` | config |
| [jmoiron/sqlx](https://github.com/jmoiron/sqlx) | `v1.3.4` | database |
| [jackc/pgx](https://github.com/jackc/pgx) | `v4.13.0` | database |
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ require (
github.com/go-redis/redis/v8 v8.11.1
github.com/gofiber/fiber/v2 v2.16.0
github.com/gofiber/jwt/v2 v2.2.5
github.com/golang-jwt/jwt v3.2.2+incompatible
github.com/golang-jwt/jwt/v4 v4.0.0
github.com/google/uuid v1.3.0
github.com/jackc/pgx/v4 v4.13.0
github.com/jmoiron/sqlx v1.3.4
Expand Down
5 changes: 3 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,10 @@ github.com/gofiber/jwt/v2 v2.2.5 h1:yF7GQSWD6NCG1c/s2Db/trITTehG5dyYQW7ItDi7MO4=
github.com/gofiber/jwt/v2 v2.2.5/go.mod h1:KHgcUv1J0Dc14ZCgRzFWO8GKakRT6uPcPcxbIEKmo4g=
github.com/gofrs/uuid v4.0.0+incompatible h1:1SD/1F5pU8p29ybwgQSwpQk+mwdRrXCYuPhW6m+TnJw=
github.com/gofrs/uuid v4.0.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM=
github.com/golang-jwt/jwt v3.2.1+incompatible h1:73Z+4BJcrTC+KczS6WvTPvRGOp1WmfEP4Q1lOd9Z/+c=
github.com/golang-jwt/jwt v3.2.1+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I=
github.com/golang-jwt/jwt v3.2.2+incompatible h1:IfV12K8xAKAnZqdXVzCZ+TOjboZ2keLg81eXfW3O+oY=
github.com/golang-jwt/jwt v3.2.2+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I=
github.com/golang-jwt/jwt/v4 v4.0.0 h1:RAqyYixv1p7uEnocuy8P1nru5wprCh/MH2BIlW5z5/o=
github.com/golang-jwt/jwt/v4 v4.0.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg=
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8=
github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA=
Expand Down
2 changes: 1 addition & 1 deletion pkg/utils/jwt_generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"strings"
"time"

"github.com/golang-jwt/jwt"
"github.com/golang-jwt/jwt/v4"
)

// Tokens struct to describe tokens object.
Expand Down
2 changes: 1 addition & 1 deletion pkg/utils/jwt_parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"strings"

"github.com/gofiber/fiber/v2"
"github.com/golang-jwt/jwt"
"github.com/golang-jwt/jwt/v4"
"github.com/google/uuid"
)

Expand Down

0 comments on commit 9dfb372

Please sign in to comment.