You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18-2
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,23 @@ It uses [jwt-go](https://github.com/dgrijalva/jwt-go) to provide a jwt authentic
8
8
9
9
## Install
10
10
11
-
Install gin-gwt [v1](http://gopkg.in/appleboy/gin-jwt.v1) version if `jwt-go` using [v2](http://gopkg.in/dgrijalva/jwt-go.v2) version. To get the package, execute:
11
+
### v2 version
12
+
13
+
Install gin-gwt [v2](http://gopkg.in/appleboy/gin-jwt.v2) version for `jwt-go`[v3](http://gopkg.in/dgrijalva/jwt-go.v3) version. To get the package, execute:
14
+
15
+
```bash
16
+
$ go get gopkg.in/appleboy/gin-jwt.v2
17
+
```
18
+
19
+
To import this package, add the following line to your code:
20
+
21
+
```go
22
+
import"gopkg.in/appleboy/gin-jwt.v2"
23
+
```
24
+
25
+
### v1 version
26
+
27
+
Install gin-gwt [v1](http://gopkg.in/appleboy/gin-jwt.v1) version for `jwt-go`[v2](http://gopkg.in/dgrijalva/jwt-go.v2) version. To get the package, execute:
12
28
13
29
```bash
14
30
$ go get gopkg.in/appleboy/gin-jwt.v1
@@ -28,7 +44,7 @@ Please see [server example file](example/server.go).
0 commit comments