Selaa lähdekoodia

chore: remove jwt deprecated (#1452)

Kevin Wan 3 vuotta sitten
vanhempi
sitoutus
272a3f347d
1 muutettua tiedostoa jossa 1 lisäystä ja 3 poistoa
  1. 1 3
      rest/token/tokenparser.go

+ 1 - 3
rest/token/tokenparser.go

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