Explorar o código

chore: remove jwt deprecated (#1452)

Kevin Wan %!s(int64=3) %!d(string=hai) anos
pai
achega
272a3f347d
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  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())
 }