Skip to content

Commit

Permalink
Use proper claim types in JSON-RPC replay tool (#6936)
Browse files Browse the repository at this point in the history
Co-authored-by: Marcos Antonio Maceo <35319980+stdevMac@users.noreply.github.com>
  • Loading branch information
emlautarom1 and stdevMac committed May 22, 2024
1 parent 6743c8d commit 485fd8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/Nethermind.Tools.Kute/Auth/JwtAuth.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ private string GenerateAuthToken()
{
var signingKey = new SymmetricSecurityKey(_secret);
var credentials = new SigningCredentials(signingKey, SecurityAlgorithms.HmacSha256);
var claims = new[] { new Claim("iat", _clock.UtcNow.ToUnixTimeSeconds().ToString()) };
var claims = new[] { new Claim(JwtRegisteredClaimNames.Iat, _clock.UtcNow.ToUnixTimeSeconds().ToString(), ClaimValueTypes.Integer64) };
var token = new JwtSecurityToken(claims: claims, signingCredentials: credentials);
var handler = new JwtSecurityTokenHandler();

Expand Down

0 comments on commit 485fd8a

Please sign in to comment.