Procházet zdrojové kódy

chore: remove jwt deprecated (#1452)

Kevin Wan před 3 roky
rodič
revize
272a3f347d
1 změnil soubory, kde provedl 1 přidání a 3 odebrání
  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())
 }