1
0
Эх сурвалжийг харах

chore: remove jwt deprecated (#1452)

Kevin Wan 3 жил өмнө
parent
commit
272a3f347d

+ 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())
 }