chore: remove jwt deprecated (#1452)

This commit is contained in:
Kevin Wan
2022-01-16 10:34:44 +08:00
committed by GitHub
parent 13db7a1931
commit 272a3f347d

View File

@@ -120,7 +120,5 @@ func WithResetDuration(duration time.Duration) ParseOption {
}
func newParser() *jwt.Parser {
return &jwt.Parser{
UseJSONNumber: true,
}
return jwt.NewParser(jwt.WithJSONNumber())
}