jwt_tool
jwt_tool copied to clipboard
timestamp error
when timestamp in token,if timestamp is 1684248669016(millisecond)
the py will go wrong
the full exception:
Token payload values:
[+] tenantId = "xxxx"
[+] userId = 106
[+] userType = "build-in"
[+] userName = "xxxx"
[+] ext = 1684248669016
Traceback (most recent call last):
File "/Users/jwt_tool-2.2.6/jwt_tool.py", line 2040, in
Same error: with the token: "iat": "07/05/2023 14:14:06"
` Token header values: [+] alg = "HS256" [+] typ = "JWT"
Token payload values:
[+] jti = "..."
Traceback (most recent call last):
File "/usr/share/jwt-tool/jwt_tool.py", line 2040, in
Same error: with the token: "iat": "07/05/2023 14:14:06"
` Token header values: [+] alg = "HS256" [+] typ = "JWT"
Token payload values: [+] jti = "..." Traceback (most recent call last): File "/usr/share/jwt-tool/jwt_tool.py", line 2040, in rejigToken(headDict, paylDict, sig) File "/usr/share/jwt-tool/jwt_tool.py", line 1298, in rejigToken comparestamps, expiredtoken = dissectPayl(paylDict) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/jwt-tool/jwt_tool.py", line 1192, in dissectPayl timestamp = datetime.fromtimestamp(int(paylDict[claim])) ^^^^^^^^^^^^^^^^^^^^ ValueError: invalid literal for int() with base 10: '07/05/2023 14:17:40' `
I have the issue too