Skip to content

Commit 0b892ff

Browse files
committed
Switch to golang-jwt/jwt v4
1 parent 9abfd35 commit 0b892ff

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

app/controllers/user_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"github.com/create-go-app/net_http-go-template/app/validators"
1010
"github.com/create-go-app/net_http-go-template/pkg/utils"
1111
"github.com/create-go-app/net_http-go-template/platform/database"
12-
"github.com/golang-jwt/jwt"
12+
"github.com/golang-jwt/jwt/v4"
1313
"github.com/google/uuid"
1414
)
1515

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ require (
66
github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751
77
github.com/auth0/go-jwt-middleware v1.0.1
88
github.com/go-playground/validator/v10 v10.8.0
9-
github.com/golang-jwt/jwt v3.2.2+incompatible
9+
github.com/golang-jwt/jwt/v4 v4.0.0
1010
github.com/google/uuid v1.3.0
1111
github.com/gorilla/mux v1.8.0
1212
github.com/jackc/pgx/v4 v4.13.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ github.com/go-sql-driver/mysql v1.5.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LB
5454
github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY=
5555
github.com/gofrs/uuid v4.0.0+incompatible h1:1SD/1F5pU8p29ybwgQSwpQk+mwdRrXCYuPhW6m+TnJw=
5656
github.com/gofrs/uuid v4.0.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM=
57-
github.com/golang-jwt/jwt v3.2.2+incompatible h1:IfV12K8xAKAnZqdXVzCZ+TOjboZ2keLg81eXfW3O+oY=
58-
github.com/golang-jwt/jwt v3.2.2+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I=
57+
github.com/golang-jwt/jwt/v4 v4.0.0 h1:RAqyYixv1p7uEnocuy8P1nru5wprCh/MH2BIlW5z5/o=
58+
github.com/golang-jwt/jwt/v4 v4.0.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg=
5959
github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI=
6060
github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I=
6161
github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=

pkg/configs/jwt_config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package configs
22

33
import (
44
jwtmiddleware "github.com/auth0/go-jwt-middleware"
5-
"github.com/golang-jwt/jwt"
5+
"github.com/golang-jwt/jwt/v4"
66
)
77

88
// JWTConfig func for

pkg/utils/jwt_generator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"os"
77
"time"
88

9-
"github.com/golang-jwt/jwt"
9+
"github.com/golang-jwt/jwt/v4"
1010
)
1111

1212
// GenerateNewJWTAccessToken func for generate a new JWT access (private) token

0 commit comments

Comments
 (0)