Skip to content

Commit

Permalink
Use Date.now() for iat
Browse files Browse the repository at this point in the history
Co-authored-by: Nico Flaig <nflaig@protonmail.com>
  • Loading branch information
ensi321 and nflaig authored Oct 24, 2023
1 parent d49c063 commit baa0ae4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down

0 comments on commit baa0ae4

Please sign in to comment.