2021-08-03 16:51:01 +03:00
## Migration Guide (v4.0.0)
2016-06-15 20:49:54 +03:00
2021-09-10 15:27:13 +03:00
Starting from [v4.0.0 ](https://github.com/golang-jwt/jwt/releases/tag/v4.0.0 ), the import path will be:
2016-06-15 20:49:54 +03:00
2022-08-27 12:36:37 +03:00
"github.com/golang-jwt/jwt/v5"
2016-06-15 20:49:54 +03:00
2021-08-03 16:51:01 +03:00
The `/v4` version will be backwards compatible with existing `v3.x.y` tags in this repo, as well as
`github.com/dgrijalva/jwt-go` . For most users this should be a drop-in replacement, if you're having
troubles migrating, please open an issue.
2022-08-27 12:36:37 +03:00
You can replace all occurrences of `github.com/dgrijalva/jwt-go` or `github.com/golang-jwt/jwt` with `github.com/golang-jwt/jwt/v5` , either manually or by using tools such as `sed` or `gofmt` .
2021-08-03 16:51:01 +03:00
And then you'd typically run:
2016-06-15 20:49:54 +03:00
```
2022-08-27 12:36:37 +03:00
go get github.com/golang-jwt/jwt/v5
2021-06-08 15:18:15 +03:00
go mod tidy
2016-06-15 20:49:54 +03:00
```
2021-06-08 15:18:15 +03:00
## Older releases (before v3.2.0)
2016-06-15 20:49:54 +03:00
2021-09-10 15:27:13 +03:00
The original migration guide for older releases can be found at https://github.com/dgrijalva/jwt-go/blob/master/MIGRATION_GUIDE.md.