File: 01-Use_jwt_v3.patch

package info (click to toggle)
golang-github-go-kit-kit 0.6.0-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 4,848 kB
  • sloc: sh: 65; makefile: 14
file content (23 lines) | stat: -rw-r--r-- 494 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Description: Patch the import names to use JWT v3 package.
--- a/auth/jwt/middleware.go
+++ b/auth/jwt/middleware.go
@@ -4,7 +4,7 @@
 	"context"
 	"errors"
 
-	jwt "github.com/dgrijalva/jwt-go"
+	jwt "github.com/dgrijalva/jwt-go-v3"
 
 	"github.com/go-kit/kit/endpoint"
 )
--- a/auth/jwt/middleware_test.go
+++ b/auth/jwt/middleware_test.go
@@ -8,7 +8,7 @@
 
 	"crypto/subtle"
 
-	jwt "github.com/dgrijalva/jwt-go"
+	jwt "github.com/dgrijalva/jwt-go-v3"
 	"github.com/go-kit/kit/endpoint"
 )