From baa0ae470b21b04ac5e6c686d7826f51919251da Mon Sep 17 00:00:00 2001 From: NC Date: Tue, 24 Oct 2023 12:41:40 +0800 Subject: [PATCH] Use Date.now() for iat Co-authored-by: Nico Flaig --- packages/beacon-node/src/eth1/provider/jsonRpcHttpClient.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/beacon-node/src/eth1/provider/jsonRpcHttpClient.ts b/packages/beacon-node/src/eth1/provider/jsonRpcHttpClient.ts index 8888fa23e72b..d06d144b86ba 100644 --- a/packages/beacon-node/src/eth1/provider/jsonRpcHttpClient.ts +++ b/packages/beacon-node/src/eth1/provider/jsonRpcHttpClient.ts @@ -265,7 +265,7 @@ export class JsonRpcHttpClient implements IJsonRpcHttpClient { * Jwt auth spec: https://github.com/ethereum/execution-apis/pull/167 */ const jwtClaim: JwtClaim = { - iat: Math.floor(new Date().getTime() / 1000), + iat: Math.floor(Date.now() / 1000), id: this.jwtId, clv: this.jwtVersion, };